summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces_bonding.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-07-02 17:23:21 +0300
committerGitHub <noreply@github.com>2026-07-02 17:23:21 +0300
commitbf64dbd6a2fc006e29814cda59cfac6506978b44 (patch)
treed4655b06e0c9976a5ecdeae87205e944e098c7b9 /src/conf_mode/interfaces_bonding.py
parent063e007a5a8eac3bb9ad101206dc94734eeaa595 (diff)
parent0d3ac22b95cef90e7c54ef823c00bb59b935c158 (diff)
downloadvyos-1x-bf64dbd6a2fc006e29814cda59cfac6506978b44.tar.gz
vyos-1x-bf64dbd6a2fc006e29814cda59cfac6506978b44.zip
Merge pull request #5167 from davi2367/zbf-vrf
firewall: T8761: Reintroduce VRF-interface names in generated config
Diffstat (limited to 'src/conf_mode/interfaces_bonding.py')
-rwxr-xr-xsrc/conf_mode/interfaces_bonding.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces_bonding.py b/src/conf_mode/interfaces_bonding.py
index fc3c05d3e..0f5554145 100755
--- a/src/conf_mode/interfaces_bonding.py
+++ b/src/conf_mode/interfaces_bonding.py
@@ -19,6 +19,7 @@ from sys import exit
from vyos.config import Config
from vyos.configdict import get_interface_dict
from vyos.configdict import is_node_changed
+from vyos.configdict import is_vrf_changed
from vyos.configdict import leaf_node_changed
from vyos.configdict import is_member
from vyos.configdict import is_source_interface
@@ -171,6 +172,11 @@ def get_config(config=None):
if 'static_arp' in bond:
set_dependents('static_arp', conf)
+ # Check vrf membership, to ensure firewall is updated
+ if is_vrf_changed(conf, ifname):
+ bond.update({'vrf_changed': {}})
+ set_dependents('firewall', conf)
+
bond['vpp_ifaces'] = cli_ifaces_list(conf)
return bond
@@ -298,7 +304,11 @@ def apply(bond):
else:
b.update(bond)
- if dict_search('member.interface_remove', bond) or 'static_arp' in bond:
+ if (
+ dict_search('member.interface_remove', bond)
+ or 'static_arp' in bond
+ or 'vrf_changed' in bond
+ ):
try:
call_dependents()
except ConfigError: