diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-20 19:52:22 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-20 19:52:22 +0100 |
commit | fb2b3c48a47f2f6c28dbe7420eb1a1f691085db1 (patch) | |
tree | a581735b53202203ceb6541bbda4c9b58a262ca1 /op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i | |
parent | 68f7d1474dec359f10d1b6b99d350110df47e136 (diff) | |
download | vyos-1x-fb2b3c48a47f2f6c28dbe7420eb1a1f691085db1.tar.gz vyos-1x-fb2b3c48a47f2f6c28dbe7420eb1a1f691085db1.zip |
op-mode: bgp: T1513: no need for "sudo"
Commit 68f7d1474d ("op-mode: bgp: T1513: add "show bgp" tree containing l2vpn
evpn") added the required XML definitions and a bash helper script. The helper
always got invoked using "sudo" which is not necessary for vtysh.
Calling "sudo" only slows down the system when e.g. RADIUS backed accounts are
used.
Diffstat (limited to 'op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i')
-rw-r--r-- | op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i b/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i index 3bea5cf13..224fa6b45 100644 --- a/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i +++ b/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i @@ -3,18 +3,18 @@ <properties> <help>Display only the bestpath</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="multipath"> <properties> <help>Display only multipaths</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="longer-prefixes"> <properties> <help>Display route and more specific routes</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <!-- included end --> |