Signed-off-by: Shinpei Muraoka <[email protected]>
---
 ryu/lib/packet/bgp.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py
index 837f9d7..6c52781 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):
-- 
2.7.4


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to