diff options
Diffstat (limited to 'src/conf_mode/interfaces_sstpc.py')
| -rwxr-xr-x | src/conf_mode/interfaces_sstpc.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces_sstpc.py b/src/conf_mode/interfaces_sstpc.py index 50d3d1cb3..0231b9952 100755 --- a/src/conf_mode/interfaces_sstpc.py +++ b/src/conf_mode/interfaces_sstpc.py @@ -20,6 +20,9 @@ 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.configdep import set_dependents +from vyos.configdep import call_dependents from vyos.configverify import verify_authentication from vyos.configverify import verify_vrf from vyos.ifconfig import SSTPCIf @@ -57,6 +60,10 @@ def get_config(config=None): # bail out early - no need to further process other nodes break + # Check vrf membership, to ensure firewall is updated + if is_vrf_changed(conf, ifname): + set_dependents('firewall', conf) + return sstpc def verify(sstpc): @@ -107,6 +114,9 @@ def apply(sstpc): p = SSTPCIf(ifname) p.remove() call(f'systemctl stop ppp@{ifname}.service') + + # run the dependents and return + call_dependents() return None # reconnect should only be necessary when specific options change, @@ -128,6 +138,9 @@ def apply(sstpc): p = SSTPCIf(ifname) p.update(sstpc) + # run the dependents + call_dependents() + return None if __name__ == '__main__': |
