summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrf.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-03-25 19:00:36 +0100
committerChristian Poessinger <christian@poessinger.com>2022-03-25 19:00:36 +0100
commit364009e4317fb5c6732635726b511613aa2ed519 (patch)
tree44c5f4b54a47e3ba3c811ddd4bb43ee5ae1bb709 /src/conf_mode/vrf.py
parentf8b3d8999cbea988ce8e7d303957558308ddc1bc (diff)
downloadvyos-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-xsrc/conf_mode/vrf.py6
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}'):