summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces_wwan.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/interfaces_wwan.py')
-rwxr-xr-xsrc/conf_mode/interfaces_wwan.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces_wwan.py b/src/conf_mode/interfaces_wwan.py
index ad6c806ad..0fe67508a 100755
--- a/src/conf_mode/interfaces_wwan.py
+++ b/src/conf_mode/interfaces_wwan.py
@@ -24,6 +24,7 @@ from vyos.configdep import set_dependents
from vyos.configdep import call_dependents
from vyos.configdict import get_interface_dict
from vyos.configdict import is_node_changed
+from vyos.configdict import is_vrf_changed
from vyos.configverify import verify_authentication
from vyos.configverify import verify_interface_exists
from vyos.configverify import verify_mirror_redirect
@@ -93,6 +94,10 @@ def get_config(config=None):
if 'static_arp' in wwan:
set_dependents('static_arp', conf)
+ # Check vrf membership, to ensure firewall is updated
+ if is_vrf_changed(conf, ifname):
+ set_dependents('firewall', conf)
+
return wwan
def verify(wwan):
@@ -170,6 +175,9 @@ def apply(wwan):
if os.path.exists(cron_script):
os.unlink(cron_script)
+ # run the dependents
+ call_dependents()
+
return None
if 'shutdown_required' in wwan or (not is_wwan_connected(wwan['ifname'])):
@@ -192,8 +200,8 @@ def apply(wwan):
w.update(wwan)
- if 'static_arp' in wwan:
- call_dependents()
+ # run the dependents
+ call_dependents()
return None