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>
This commit is contained in:
Shinpei Muraoka 2016-11-09 10:44:03 +09:00 committed by FUJITA Tomonori
parent e84b21b5ed
commit 264d32ea2d

View File

@ -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):