diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-11-28 14:33:41 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-12-10 14:59:29 +0900 |
commit | 002cbbe1ecd002f06258d37d7c2accb9e8cc9d7e (patch) | |
tree | eab514875b4471735d9481244bd52e78292bdd16 | |
parent | 88c5be07ded8c5669eb94b76b00505536bc3b831 (diff) |
packet/bgp: Fix default of esi for IP Prefix route
"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 <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/packet/bgp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index dc3f7b95..1c79052e 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -1897,7 +1897,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 |