summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorShinpei Muraoka <shinpei.muraoka@gmail.com>2016-11-09 10:44:03 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-14 13:20:59 +0900
commit264d32ea2d1aa900daa7c554505e5e71be45b0fc (patch)
treec395682de7017e34d048604c69501ee6c4c0ee1f
parente84b21b5ed063f1e8550b47d231b6bd039d96838 (diff)
packet/bgp: Fix the EvpnNLRI to use the ryu.lib.packet.vxlan
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/bgp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py
index 837f9d7a..6c527813 100644
--- a/ryu/lib/packet/bgp.py
+++ b/ryu/lib/packet/bgp.py
@@ -1436,11 +1436,11 @@ class EvpnNLRI(StringifyMixin, _TypeDisp):
@staticmethod
def _vni_from_bin(buf):
- return type_desc.Int3.to_user(six.binary_type(buf[:3])), buf[3:]
+ return vxlan.vni_from_bin(six.binary_type(buf[:3])), buf[3:]
@staticmethod
def _vni_to_bin(vni):
- return type_desc.Int3.from_user(vni)
+ return vxlan.vni_to_bin(vni)
@property
def prefix(self):