summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include/bgp-afi-common.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-20 19:52:22 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-20 19:52:22 +0100
commitfb2b3c48a47f2f6c28dbe7420eb1a1f691085db1 (patch)
treea581735b53202203ceb6541bbda4c9b58a262ca1 /op-mode-definitions/include/bgp-afi-common.xml.i
parent68f7d1474dec359f10d1b6b99d350110df47e136 (diff)
downloadvyos-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-afi-common.xml.i')
-rw-r--r--op-mode-definitions/include/bgp-afi-common.xml.i10
1 files changed, 5 insertions, 5 deletions
diff --git a/op-mode-definitions/include/bgp-afi-common.xml.i b/op-mode-definitions/include/bgp-afi-common.xml.i
index b496e910a..06cfc42a5 100644
--- a/op-mode-definitions/include/bgp-afi-common.xml.i
+++ b/op-mode-definitions/include/bgp-afi-common.xml.i
@@ -11,10 +11,10 @@
<properties>
<help>Exact match of the communities</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</leafNode>
</children>
- <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</tagNode>
<tagNode name="large-community">
<properties>
@@ -23,18 +23,18 @@
<list>AA:BB:CC</list>
</completionHelp>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</tagNode>
<leafNode name="statistics">
<properties>
<help>RIB advertisement statistics</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</leafNode>
<leafNode name="summary">
<properties>
<help>Summary of BGP neighbor status</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</leafNode>
<!-- included end -->