mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-14 17:16:45 +02:00
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:
parent
e84b21b5ed
commit
264d32ea2d
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user