summaryrefslogtreecommitdiff
path: root/src/conf_mode/firewall.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-11-28 11:10:18 -0600
committerJohn Estabrook <jestabro@vyos.io>2022-11-28 15:13:34 -0600
commit1d12b24aa5b4d61d59f847e0002f291b66c7a737 (patch)
treed2477538790ef65d71ecabfa6c60d15751bcc070 /src/conf_mode/firewall.py
parent7573c7eb6fed01b7181074737390a07f5abfc4fa (diff)
downloadvyos-1x-1d12b24aa5b4d61d59f847e0002f291b66c7a737.tar.gz
vyos-1x-1d12b24aa5b4d61d59f847e0002f291b66c7a737.zip
conf-mode: T4845: add external file for dict of config-mode dependencies
Diffstat (limited to 'src/conf_mode/firewall.py')
-rwxr-xr-xsrc/conf_mode/firewall.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/conf_mode/firewall.py b/src/conf_mode/firewall.py
index 9fee20358..38a332be3 100755
--- a/src/conf_mode/firewall.py
+++ b/src/conf_mode/firewall.py
@@ -26,7 +26,7 @@ from vyos.config import Config
from vyos.configdict import dict_merge
from vyos.configdict import node_changed
from vyos.configdiff import get_config_diff, Diff
-from vyos.configdep import set_dependent, call_dependents
+from vyos.configdep import set_dependents, call_dependents
# from vyos.configverify import verify_interface_exists
from vyos.firewall import fqdn_config_parse
from vyos.firewall import geoip_update
@@ -162,11 +162,8 @@ def get_config(config=None):
firewall['group_resync'] = bool('group' in firewall or node_changed(conf, base + ['group']))
if firewall['group_resync']:
- # Update nat as firewall groups were updated
- set_dependent(nat_conf_script, conf)
- # Update policy route as firewall groups were updated
- set_dependent(policy_route_conf_script, conf)
-
+ # Update nat and policy-route as firewall groups were updated
+ set_dependents('group_resync', conf)
if 'config_trap' in firewall and firewall['config_trap'] == 'enable':
diff = get_config_diff(conf)