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:00:36 +0100 |
commit | 364009e4317fb5c6732635726b511613aa2ed519 (patch) | |
tree | 44c5f4b54a47e3ba3c811ddd4bb43ee5ae1bb709 /src/conf_mode/vrf.py | |
parent | f8b3d8999cbea988ce8e7d303957558308ddc1bc (diff) | |
download | vyos-1x-364009e4317fb5c6732635726b511613aa2ed519.tar.gz vyos-1x-364009e4317fb5c6732635726b511613aa2ed519.zip |
vyos.util: T4319: rename sysctl() -> sysctl_write()
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 cfe0f4d8e..6a521a0dd 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -29,7 +29,7 @@ from vyos.util import dict_search from vyos.util import get_interface_config from vyos.util import popen from vyos.util import run -from vyos.util import sysctl +from vyos.util import sysctl_write from vyos import ConfigError from vyos import frr from vyos import airbag @@ -154,8 +154,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}'): |