summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_mpls.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-04 20:53:30 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-04 21:36:51 +0200
commitc8c42db4cc644cdec43d4d1cc8dd2905bad42df6 (patch)
tree5e57c5507cdbd4f052a6bab6f807acacf10f83f7 /src/conf_mode/protocols_mpls.py
parentb5ac2b136c57d0cb2be7648df5b6fcf3204bca88 (diff)
downloadvyos-1x-c8c42db4cc644cdec43d4d1cc8dd2905bad42df6.tar.gz
vyos-1x-c8c42db4cc644cdec43d4d1cc8dd2905bad42df6.zip
cleanup: no need to call sudo for configuration mode scripts
Diffstat (limited to 'src/conf_mode/protocols_mpls.py')
-rwxr-xr-xsrc/conf_mode/protocols_mpls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_mpls.py b/src/conf_mode/protocols_mpls.py
index 15785a801..72208ffa1 100755
--- a/src/conf_mode/protocols_mpls.py
+++ b/src/conf_mode/protocols_mpls.py
@@ -153,7 +153,7 @@ def apply(mpls):
operate_mpls_on_intfc(diactive_ifaces, 0)
if os.path.exists(config_file):
- call("sudo vtysh -d ldpd -f " + config_file)
+ call(f'vtysh -d ldpd -f {config_file}')
os.remove(config_file)
return None