diff options
Diffstat (limited to 'src/conf_mode/interfaces_pseudo-ethernet.py')
| -rwxr-xr-x | src/conf_mode/interfaces_pseudo-ethernet.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces_pseudo-ethernet.py b/src/conf_mode/interfaces_pseudo-ethernet.py index 12019d3e6..cb0f7e7d0 100755 --- a/src/conf_mode/interfaces_pseudo-ethernet.py +++ b/src/conf_mode/interfaces_pseudo-ethernet.py @@ -22,6 +22,7 @@ from vyos.configdep import call_dependents from vyos.configdict import get_interface_dict from vyos.configdict import is_source_interface from vyos.configdict import is_node_changed +from vyos.configdict import is_vrf_changed from vyos.configverify import verify_vrf from vyos.configverify import verify_address from vyos.configverify import verify_bridge_delete @@ -66,6 +67,10 @@ def get_config(config=None): if 'static_arp' in peth: set_dependents('static_arp', conf) + # Check vrf membership, to ensure firewall is updated + if is_vrf_changed(conf, ifname): + set_dependents('firewall', conf) + return peth def _verify_anycast_gateway(peth: dict): @@ -131,8 +136,8 @@ def apply(peth): p = MACVLANIf(**peth) p.update(peth) - if 'static_arp' in peth: - call_dependents() + # run the dependents + call_dependents() return None |
