summaryrefslogtreecommitdiff
path: root/src/conf_mode/system_ipv6.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-24 21:55:38 +0200
committerGitHub <noreply@github.com>2024-08-24 21:55:38 +0200
commit190ae20824784271376c74eb9d6685155bc29cd8 (patch)
tree4040e61f35af5b7562b86c8694e93b09e5325d16 /src/conf_mode/system_ipv6.py
parent6f4bbbac4eaa16327b174e6231993000f33a121f (diff)
parent092c922cfbec7ee82878fa5d22c5c016af01b60d (diff)
downloadvyos-1x-190ae20824784271376c74eb9d6685155bc29cd8.tar.gz
vyos-1x-190ae20824784271376c74eb9d6685155bc29cd8.zip
Merge pull request #4011 from vyos/mergify/bp/circinus/pr-3945
sysctl: T3204: restore sysctl settings overwritten by tuned (backport #3945)
Diffstat (limited to 'src/conf_mode/system_ipv6.py')
-rwxr-xr-xsrc/conf_mode/system_ipv6.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conf_mode/system_ipv6.py b/src/conf_mode/system_ipv6.py
index 00d440e35..a2442d009 100755
--- a/src/conf_mode/system_ipv6.py
+++ b/src/conf_mode/system_ipv6.py
@@ -25,6 +25,8 @@ from vyos.utils.dict import dict_search
from vyos.utils.file import write_file
from vyos.utils.process import is_systemd_service_active
from vyos.utils.system import sysctl_write
+from vyos.configdep import set_dependents
+from vyos.configdep import call_dependents
from vyos import ConfigError
from vyos import frr
from vyos import airbag
@@ -52,6 +54,11 @@ def get_config(config=None):
get_first_key=True)}}
# Merge policy dict into "regular" config dict
opt = dict_merge(tmp, opt)
+
+ # If IPv6 neighbor table size is set here and also manually in sysctl, the more
+ # fine grained value from sysctl must win
+ set_dependents('sysctl', conf)
+
return opt
def verify(opt):
@@ -110,6 +117,8 @@ def apply(opt):
frr_cfg.add_before(frr.default_add_before, opt['frr_zebra_config'])
frr_cfg.commit_configuration(zebra_daemon)
+ call_dependents()
+
if __name__ == '__main__':
try:
c = get_config()