diff options
5 files changed, 71 insertions, 71 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 --> diff --git a/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i b/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i index 6de666603..dc0926375 100644 --- a/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i +++ b/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i @@ -8,94 +8,94 @@ <properties> <help>Should accept local VPN route if exported and imported into different VRF (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="accept-own-nexthop"> <properties> <help>Should accept VPN route with local nexthop (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="blackhole"> <properties> <help>Inform EBGP peers to blackhole traffic to prefix (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="exact-match"> <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> <leafNode name="graceful-shutdown"> <properties> <help>Graceful shutdown (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="llgr-stale"> <properties> <help>Staled Long-lived Graceful Restart VPN route (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="local-AS"> <properties> <help>Do not send outside local AS (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="no-advertise"> <properties> <help>Do not advertise to any peer (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="no-export"> <properties> <help>Do not export to next AS (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="no-llgr"> <properties> <help>Removed because Long-lived Graceful Restart was not enabled for VPN route (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="no-peer"> <properties> <help>Do not export to any peer (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="route-filter-translated-v4"> <properties> <help>RT translated VPNv4 route filtering (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="route-filter-translated-v6"> <properties> <help>RT translated VPNv6 route filtering (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="route-filter-v4"> <properties> <help>RT VPNv4 route filtering (well-known community)</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="route-filter-v6"> <properties> <help>RT VPNv6 route filtering (well-known community)</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> </node> <tagNode name="community-list"> <properties> @@ -109,10 +109,10 @@ <properties> <help>Show BGP routes exactly matching specified community list</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> <node name="dampening"> <properties> @@ -123,19 +123,19 @@ <properties> <help>Display paths suppressed due to dampening</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="flap-statistics"> <properties> <help>Display flap statistics of routes</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="parameters"> <properties> <help>Display detail of configured dampening parameters</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </node> @@ -151,13 +151,13 @@ <properties> <help>Show BGP routes matching the specified large-communities</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </node> <leafNode name="neighbors"> <properties> <help>Detailed information on TCP and BGP neighbor connections</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <tagNode name="neighbors"> <properties> @@ -166,31 +166,31 @@ <script>vtysh -c 'show bgp summary' | awk '{print $1'} | grep -e '^[0-9a-f]'</script> </completionHelp> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> <leafNode name="advertised-routes"> <properties> <help>Show routes advertised to a BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="dampened-routes"> <properties> <help>Show dampened routes received from BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="flap-statistics"> <properties> <help>Show flap statistics of the routes learned from BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="prefix-counts"> <properties> <help>Show detailed prefix count information for BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <node name="received"> <properties> @@ -201,7 +201,7 @@ <properties> <help>Show prefixlist filter</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </node> @@ -209,13 +209,13 @@ <properties> <help>Show received routes from BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="routes"> <properties> <help>Show routes learned from BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </tagNode> @@ -223,13 +223,13 @@ <properties> <help>Display routes conforming to the prefix-list</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> <tagNode name="regexp"> <properties> <help>Display routes matching the AS path regular expression</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> <tagNode name="route-map"> <properties> @@ -238,6 +238,6 @@ <path>policy route-map</path> </completionHelp> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> <!-- included end --> 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 --> diff --git a/op-mode-definitions/include/vtysh-generic-detail.xml.i b/op-mode-definitions/include/vtysh-generic-detail.xml.i index 9e1f90649..5a3097a77 100644 --- a/op-mode-definitions/include/vtysh-generic-detail.xml.i +++ b/op-mode-definitions/include/vtysh-generic-detail.xml.i @@ -3,6 +3,6 @@ <properties>
<help>Detailed information</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</leafNode>
<!-- included end -->
diff --git a/op-mode-definitions/show-bgp.xml.in b/op-mode-definitions/show-bgp.xml.in index 506af68b3..cd0c5a9e5 100644 --- a/op-mode-definitions/show-bgp.xml.in +++ b/op-mode-definitions/show-bgp.xml.in @@ -6,7 +6,7 @@ <properties> <help>BGP information</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> #include <include/bgp-afi-ipv4-ipv6-common.xml.i> <tagNode name="ipv4"> @@ -19,7 +19,7 @@ <children> #include <include/bgp-prefix-bestpath-multipath.xml.i> </children> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> <node name="ipv4"> <properties> @@ -40,7 +40,7 @@ <children> #include <include/bgp-prefix-bestpath-multipath.xml.i> </children> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> <node name="ipv6"> <properties> @@ -63,7 +63,7 @@ <list><x.x.x.x> <x.x.x.x/x> <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> </completionHelp> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> <node name="evpn"> <properties> @@ -80,13 +80,13 @@ <properties> <help>Display BGP Overlay Information for prefixes</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="tags"> <properties> <help>Display BGP tags for prefixes</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </node> @@ -94,7 +94,7 @@ <properties> <help>Ethernet Segment</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> #include <include/vtysh-generic-detail.xml.i> </children> @@ -103,14 +103,14 @@ <properties> <help>Ethernet Segment per EVI</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> #include <include/vtysh-generic-detail.xml.i> <tagNode name="vni"> <properties> <help>VxLAN Network Identifier</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> </children> </node> @@ -118,7 +118,7 @@ <properties> <help>Show import route target</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <tagNode name="neighbors"> <properties> @@ -127,19 +127,19 @@ <script>vtysh -c 'show bgp summary' | awk '{print $1'} | grep -e '^[0-9a-f]'</script> </completionHelp> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> <leafNode name="advertised-routes"> <properties> <help>Show routes advertised to a BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="routes"> <properties> <help>Show routes learned from BGP neighbor</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </tagNode> @@ -150,19 +150,19 @@ <list>ASN:NN IPADDRESS:NN</list> </completionHelp> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> <leafNode name="overlay"> <properties> <help>Display BGP Overlay Information for prefixes</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="tags"> <properties> <help>Display BGP tags for prefixes</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </tagNode> @@ -170,7 +170,7 @@ <properties> <help>EVPN route information</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> <children> #include <include/vtysh-generic-detail.xml.i> <node name="type"> @@ -182,61 +182,61 @@ <properties> <help>EAD (Type-1) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="2"> <properties> <help>MAC-IP (Type-2) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="3"> <properties> <help>Multicast (Type-3) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="4"> <properties> <help>Ethernet Segment (Type-4) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="5"> <properties> <help>Prefix (Type-5) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="ead"> <properties> <help>EAD (Type-1) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="es"> <properties> <help>Ethernet Segment (Type-4) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="macip"> <properties> <help>MAC-IP (Type-2) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="multicast"> <properties> <help>Multicast (Type-3) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> <leafNode name="prefix"> <properties> <help>Prefix (Type-5) route</help> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </leafNode> </children> </node> @@ -247,7 +247,7 @@ <list>1-16777215 all</list> </completionHelp> </properties> - <command>sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> </tagNode> </children> </node> |