1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vxlan: ifquery-check: don't check fdb running state if mcastgrp-map or remoteip map are not configured

fdb entries can be added by FRR, so we won't be checking the running
state if there's no record of a user configuration in /e/n/i

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2021-06-01 12:21:55 +02:00
parent 2b867068c6
commit d4403f1e77

View File

@ -1468,7 +1468,14 @@ class vxlan(Vxlan, moduleBase):
#
# vxlan-mcastgrp-map & vxlan-remoteip-map
#
# fdb entries can be added by FRR, so we won't be checking the running
# state if there's no record of a user configuration in /e/n/i
user_mcastgrp_map = self.__get_vxlan_mcastgrp_map(ifaceobj)
user_remote_ip_map = self.__get_vxlan_remote_ip_map(ifaceobj)
if not user_mcastgrp_map or not user_remote_ip_map:
return
fdb_mcast = {}
fdb_remote = {}
@ -1485,8 +1492,6 @@ class vxlan(Vxlan, moduleBase):
#
# vxlan-mcastgrp-map
#
user_mcastgrp_map = self.__get_vxlan_mcastgrp_map(ifaceobj)
if not user_mcastgrp_map and fdb_mcast:
ifaceobjcurr.update_config_with_status(
"vxlan-mcastgrp-map",
@ -1505,8 +1510,6 @@ class vxlan(Vxlan, moduleBase):
#
# vxlan-remoteip-map
#
user_remote_ip_map = self.__get_vxlan_remote_ip_map(ifaceobj)
if not user_remote_ip_map and fdb_remote:
ifaceobjcurr.update_config_with_status(
"vxlan-remoteip-map",