diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-03-25 19:00:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-03-25 19:18:19 +0100 |
commit | 4187f010263646442dc2e70564d27787908a5fb1 (patch) | |
tree | 09f4e9e7f4899edb449c39a85dbfbd3a2ca9c3bf /src/conf_mode/vrf.py | |
parent | b12b4d512bd0f0cf98b717631be28a6fb5e65aa2 (diff) | |
download | vyos-1x-4187f010263646442dc2e70564d27787908a5fb1.tar.gz vyos-1x-4187f010263646442dc2e70564d27787908a5fb1.zip |
vyos.util: T4319: rename sysctl() -> sysctl_write()
(cherry picked from commit 364009e4317fb5c6732635726b511613aa2ed519)
Diffstat (limited to 'src/conf_mode/vrf.py')
-rwxr-xr-x | src/conf_mode/vrf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index e64f35ab5..dd1739087 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -26,7 +26,7 @@ from vyos.template import render from vyos.util import call from vyos.util import cmd from vyos.util import dict_search -from vyos.util import sysctl +from vyos.util import sysctl_write from vyos import ConfigError from vyos import airbag airbag.enable() @@ -144,8 +144,8 @@ def apply(vrf): bind_all = '0' if 'bind-to-all' in vrf: bind_all = '1' - sysctl('net.ipv4.tcp_l3mdev_accept', bind_all) - sysctl('net.ipv4.udp_l3mdev_accept', bind_all) + sysctl_write('net.ipv4.tcp_l3mdev_accept', bind_all) + sysctl_write('net.ipv4.udp_l3mdev_accept', bind_all) for tmp in (dict_search('vrf_remove', vrf) or []): if os.path.isdir(f'/sys/class/net/{tmp}'): |