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>
This commit is contained in:
IWASE Yusuke 2016-11-28 14:33:41 +09:00 committed by FUJITA Tomonori
parent 88c5be07de
commit 002cbbe1ec

View File

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