[FRR] fix pfx_filter to fix bgpd.conf.j2 rendering when no vlan interfaces (#2994)

This commit is contained in:
Stepan Blyshchak 2019-06-14 05:04:45 +03:00 committed by lguohan
parent f5f7fb38b8
commit 383fc0fa4b

View File

@ -93,6 +93,10 @@ def pfx_filter(value):
For eg - VLAN_INTERFACE|Vlan1000 vs VLAN_INTERFACE|Vlan1000|192.168.0.1/21 For eg - VLAN_INTERFACE|Vlan1000 vs VLAN_INTERFACE|Vlan1000|192.168.0.1/21
""" """
table = OrderedDict() table = OrderedDict()
if not value:
return table
for key,val in value.items(): for key,val in value.items():
if not isinstance(key, tuple): if not isinstance(key, tuple):
continue continue