diff options
Diffstat (limited to 'src/conf_mode/interfaces_vxlan.py')
| -rwxr-xr-x | src/conf_mode/interfaces_vxlan.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces_vxlan.py b/src/conf_mode/interfaces_vxlan.py index 86e885807..1dab47b4a 100755 --- a/src/conf_mode/interfaces_vxlan.py +++ b/src/conf_mode/interfaces_vxlan.py @@ -23,6 +23,7 @@ from vyos.configdep import call_dependents from vyos.configdict import get_interface_dict from vyos.configdict import leaf_node_changed from vyos.configdict import is_node_changed +from vyos.configdict import is_vrf_changed from vyos.configdict import node_changed from vyos.configverify import verify_address from vyos.configverify import verify_bridge_delete @@ -89,6 +90,10 @@ def get_config(config=None): if 'static_arp' in vxlan: set_dependents('static_arp', conf) + # Check vrf membership, to ensure firewall is updated + if is_vrf_changed(conf, ifname): + set_dependents('firewall', conf) + return vxlan def verify(vxlan): @@ -257,8 +262,8 @@ def apply(vxlan): v = VXLANIf(**vxlan) v.update(vxlan) - if 'static_arp' in vxlan: - call_dependents() + # run the dependents + call_dependents() return None |
