mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vxlan: add null list check when mcastgrp map not present
Signed-off-by: Roopa Prabhu <roopa@nvidia.com>
This commit is contained in:
committed by
Julien Fortin
parent
782aff35ce
commit
8743434a25
@@ -1019,7 +1019,7 @@ class vxlan(Vxlan, moduleBase):
|
||||
except Exception as e:
|
||||
self.logger.error("%s: %s (%s)" %(ifaceobj.name, vlan_vni_map, str(e)))
|
||||
return
|
||||
for vni_mcastgrp_map in ifaceobj.get_attr_value("vxlan-mcastgrp-map"):
|
||||
for vni_mcastgrp_map in ifaceobj.get_attr_value("vxlan-mcastgrp-map") or []:
|
||||
try:
|
||||
vd = utils.get_vni_mcastgrp_in_map(vni_mcastgrp_map)
|
||||
for v, g in vd.items():
|
||||
|
Reference in New Issue
Block a user