"esi" value should be an instance of EvpnEsi subclass and not int
type value, this patch fixes the default value to "None".

Signed-off-by: IWASE Yusuke <[email protected]>
---
 ryu/lib/packet/bgp.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py
index a1bb02a..34025ad 100644
--- a/ryu/lib/packet/bgp.py
+++ b/ryu/lib/packet/bgp.py
@@ -1861,7 +1861,8 @@ class EvpnIpPrefixNLRI(EvpnNLRI):
     _LABEL_LEN = 3
 
     def __init__(self, route_dist, ethernet_tag_id, ip_prefix,
-                 esi=0, gw_ip_addr=None, mpls_label=None, vni=None, label=None,
+                 esi=None, gw_ip_addr=None,
+                 mpls_label=None, vni=None, label=None,
                  type_=None, length=None):
         super(EvpnIpPrefixNLRI, self).__init__(type_, length)
         self.route_dist = route_dist
-- 
2.7.4


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to