diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-04 20:53:30 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-04 21:36:51 +0200 |
commit | c8c42db4cc644cdec43d4d1cc8dd2905bad42df6 (patch) | |
tree | 5e57c5507cdbd4f052a6bab6f807acacf10f83f7 /src/conf_mode/vrf.py | |
parent | b5ac2b136c57d0cb2be7648df5b6fcf3204bca88 (diff) | |
download | vyos-1x-c8c42db4cc644cdec43d4d1cc8dd2905bad42df6.tar.gz vyos-1x-c8c42db4cc644cdec43d4d1cc8dd2905bad42df6.zip |
cleanup: no need to call sudo for configuration mode scripts
Diffstat (limited to 'src/conf_mode/vrf.py')
-rwxr-xr-x | src/conf_mode/vrf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index d3327b3c7..56ca813ff 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -201,8 +201,8 @@ def apply(vrf_config): for vrf in vrf_config['vrf_remove']: name = vrf['name'] if os.path.isdir(f'/sys/class/net/{name}'): - _cmd(f'sudo ip -4 route del vrf {name} unreachable default metric 4278198272') - _cmd(f'sudo ip -6 route del vrf {name} unreachable default metric 4278198272') + _cmd(f'ip -4 route del vrf {name} unreachable default metric 4278198272') + _cmd(f'ip -6 route del vrf {name} unreachable default metric 4278198272') _cmd(f'ip link delete dev {name}') for vrf in vrf_config['vrf_add']: |