1
0
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:
Roopa Prabhu
2021-05-28 22:47:42 -07:00
committed by Julien Fortin
parent 782aff35ce
commit 8743434a25

View File

@@ -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():