From 68f7d1474dec359f10d1b6b99d350110df47e136 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 20 Feb 2021 19:24:31 +0100 Subject: op-mode: bgp: T1513: add "show bgp" tree containing l2vpn evpn --- op-mode-definitions/include/bgp-afi-common.xml.i | 40 ++++ .../include/bgp-afi-ipv4-ipv6-common.xml.i | 243 +++++++++++++++++++ .../include/bgp-prefix-bestpath-multipath.xml.i | 20 ++ .../include/vtysh-generic-detail.xml.i | 8 + op-mode-definitions/show-bgp.xml.in | 262 +++++++++++++++++++++ op-mode-definitions/show-ip-bgp.xml.in | 228 +----------------- op-mode-definitions/show-ipv6-bgp.xml.in | 203 ---------------- 7 files changed, 579 insertions(+), 425 deletions(-) create mode 100644 op-mode-definitions/include/bgp-afi-common.xml.i create mode 100644 op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i create mode 100644 op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i create mode 100644 op-mode-definitions/include/vtysh-generic-detail.xml.i create mode 100644 op-mode-definitions/show-bgp.xml.in delete mode 100644 op-mode-definitions/show-ipv6-bgp.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/include/bgp-afi-common.xml.i b/op-mode-definitions/include/bgp-afi-common.xml.i new file mode 100644 index 000000000..b496e910a --- /dev/null +++ b/op-mode-definitions/include/bgp-afi-common.xml.i @@ -0,0 +1,40 @@ + + + + Community number where AA and NN are (0-65535) + + AA:NN + + + + + + Exact match of the communities + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + List of large-community numbers + + AA:BB:CC + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + RIB advertisement statistics + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Summary of BGP neighbor status + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + 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 new file mode 100644 index 000000000..6de666603 --- /dev/null +++ b/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i @@ -0,0 +1,243 @@ + + + + Display routes matching the community + + + + + Should accept local VPN route if exported and imported into different VRF (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Should accept VPN route with local nexthop (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Inform EBGP peers to blackhole traffic to prefix (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Exact match of the communities + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Graceful shutdown (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Staled Long-lived Graceful Restart VPN route (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Do not send outside local AS (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Do not advertise to any peer (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Do not export to next AS (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Removed because Long-lived Graceful Restart was not enabled for VPN route (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Do not export to any peer (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + RT translated VPNv4 route filtering (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + RT translated VPNv6 route filtering (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + RT VPNv4 route filtering (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + RT VPNv6 route filtering (well-known community) + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display routes matching the community-list + + 1-500 name + + + + + + Show BGP routes exactly matching specified community list + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display detailed information about dampening + + + + + Display paths suppressed due to dampening + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display flap statistics of routes + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display detail of configured dampening parameters + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Display routes conforming to the filter-list + + + + + + + + Show BGP routes matching the specified large-communities + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Detailed information on TCP and BGP neighbor connections + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show detailed BGP IPv4 unicast neighbor information + + + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show routes advertised to a BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show dampened routes received from BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show flap statistics of the routes learned from BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show detailed prefix count information for BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show information received from BGP neighbor + + + + + Show prefixlist filter + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show received routes from BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show routes learned from BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Display routes conforming to the prefix-list + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display routes matching the AS path regular expression + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show BGP routes matching the specified route map + + policy route-map + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i b/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i new file mode 100644 index 000000000..3bea5cf13 --- /dev/null +++ b/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i @@ -0,0 +1,20 @@ + + + + Display only the bestpath + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display only multipaths + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display route and more specific routes + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/vtysh-generic-detail.xml.i b/op-mode-definitions/include/vtysh-generic-detail.xml.i new file mode 100644 index 000000000..9e1f90649 --- /dev/null +++ b/op-mode-definitions/include/vtysh-generic-detail.xml.i @@ -0,0 +1,8 @@ + + + + Detailed information + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/show-bgp.xml.in b/op-mode-definitions/show-bgp.xml.in new file mode 100644 index 000000000..506af68b3 --- /dev/null +++ b/op-mode-definitions/show-bgp.xml.in @@ -0,0 +1,262 @@ + + + + + + + BGP information + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + Network in the BGP routing table to display + + <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> + + + + #include + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + IPv4 Address Family + + + #include + #include + + + + + Network in the BGP routing table to display + + <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> + + + + #include + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + IPv6 Address Family + + + #include + #include + + + + + Layer 2 Virtual Private Network + + + + + Network in the BGP routing table to display + + <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> + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Ethernet Virtual Private Network + + + #include + + + Display information about all EVPN NLRIs + + + + + Display BGP Overlay Information for prefixes + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display BGP tags for prefixes + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Ethernet Segment + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + Ethernet Segment per EVI + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + VxLAN Network Identifier + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show import route target + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show detailed BGP neighbor information + + + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show routes advertised to a BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show routes learned from BGP neighbor + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show detailed BGP neighbor information + + ASN:NN IPADDRESS:NN + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display BGP Overlay Information for prefixes + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display BGP tags for prefixes + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + EVPN route information + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + Specify Route type + + + + + EAD (Type-1) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + MAC-IP (Type-2) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Multicast (Type-3) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Ethernet Segment (Type-4) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Prefix (Type-5) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + EAD (Type-1) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Ethernet Segment (Type-4) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + MAC-IP (Type-2) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Multicast (Type-3) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Prefix (Type-5) route + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + VXLAN Network Identifier + + 1-16777215 all + + + sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + + + + + + + diff --git a/op-mode-definitions/show-ip-bgp.xml.in b/op-mode-definitions/show-ip-bgp.xml.in index 311f9e6ae..690de0a1d 100644 --- a/op-mode-definitions/show-ip-bgp.xml.in +++ b/op-mode-definitions/show-ip-bgp.xml.in @@ -22,59 +22,21 @@ vtysh -c "show ip bgp cidr-only" - - - Show BGP routes matching the communities - - vtysh -c "show ip bgp community" - - - - Display routes matching the specified communities - - <AA:NN> local-AS no-advertise no-export - - - vtysh -c "show ip bgp community $5" - List all bgp community information vtysh -c "show ip bgp community-info" - - - Show BGP routes matching specified community list - - vtysh -c "show ip bgp community-list $5" - - - - Show BGP routes exactly matching specified community list - - vtysh -c "show ip bgp community-list $5 exact-match" - - - - - - Show dampened BGP paths - - vtysh -c "show ip bgp dampening dampened-paths" - - + #include + #include + - Show BGP information for specified word + + policy prefix-list + - vtysh -c "show ip bgp filter-list $5" - - - Show flap statistics of routes - - vtysh -c "show ip bgp dampening flap-statistics" - Show BGP IPv4 information @@ -120,12 +82,6 @@ - - - Show BGP information for specified word - - vtysh -c "show ip bgp filter-list $5" - Show detailed BGP IPv4 unicast neighbor information @@ -204,198 +160,26 @@ - - - Layer 2 Virtual Private Network - - - - - Ethernet Virtual Private Network - - - - - Display information about all EVPN NLRIs - - - - - Display BGP Overlay Information for prefixes - - vtysh -c "show ip bgp l2vpn evpn all overlay" - - - - Display BGP tags for prefixes - - vtysh -c "show ip bgp l2vpn evpn all tags" - - - - - - Show detailed BGP IPv4 unicast neighbor information - - - - - - - - Show routes advertised to a BGP neighbor - - vtysh -c "show ip bgp l2vpn evpn neighbor $7 advertised-routes" - - - - Show routes learned from BGP neighbor - - vtysh -c "show ip bgp l2vpn evpn neighbor $7 routes" - - - - - - Detailed info about dynamic update groups - - vtysh -c "show ip bgp l2vpn evpn update-groups" - - - - - - - - Show BGP routes matching the specified large-communities - - vtysh -c "show ip bgp large-community" - Show BGP large-community information vtysh -c "show ip bgp large-community-info" - - - Show BGP routes matching the specified large-community list - - vtysh -c "show ip bgp large-community-list $5" - Show BGP memory usage vtysh -c "show ip bgp memory" - - - Show detailed BGP IPv4 unicast neighbor information - - - - - vtysh -c "show ip bgp neighbors $5" - - - - Show routes advertised to a BGP neighbor - - vtysh -c "show ip bgp neighbor $5 advertised-routes" - - - - Show dampened routes received from BGP neighbor - - vtysh -c "show ip bgp neighbor $5 dampened-routes" - - - - Show flap statistics of the routes learned from BGP neighbor - - vtysh -c "show ip bgp neighbor $5 flap-statistics" - - - - Show detailed prefix count information for BGP neighbor - - vtysh -c "show ip bgp neighbor $5 prefix-counts" - - - - Show information received from BGP neighbor - - - - - Show prefixlist filter - - vtysh -c "show ip bgp neighbor $5 received prefix-filter" - - - - - - Show received routes from BGP neighbor - - vtysh -c "show ip bgp neighbor $5 received-routes" - - - - Show routes learned from BGP neighbor - - vtysh -c "show ip bgp neighbor $5 routes" - - - Show BGP path information vtysh -c "show ip bgp paths" - - - Show BGP routes matching the specified prefix list - - vtysh -c "show ip bgp prefix-list $5" - - - - Show BGP routes matching the specified AS path regular expression - - vtysh -c "show ip bgp regexp $5" - - - - Show BGP routes matching the specified route map - - vtysh -c "show ip bgp route-map $5" - - - - Show summary of BGP information - - vtysh -c "show ip bgp statistics" - - - - Show summary of BGP information - - vtysh -c "show ip bgp summary" - - - - Show BGP information for specified IP address or prefix - - <x.x.x.x> <x.x.x.x/x> - - - vtysh -c "show ip bgp $4" - diff --git a/op-mode-definitions/show-ipv6-bgp.xml.in b/op-mode-definitions/show-ipv6-bgp.xml.in deleted file mode 100644 index aad61b97a..000000000 --- a/op-mode-definitions/show-ipv6-bgp.xml.in +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - Show IPv6 routing information - - - - - Show Border Gateway Protocol (BGP) information - - vtysh -c "show bgp ipv6" - - - - Show summary of BGP neighbor status - - vtysh -c "show bgp ipv6 summary" - - - - Show routes matching AS path regular expression - - vtysh -c "show bgp ipv6 regexp $5" - - - - Show routes matching the IPv6 prefix-list name - - policy prefix-list6 - - - vtysh -c "show bgp ipv6 prefix-list $5" - - - - Show detailed information on TCP and BGP neighbor connections for given address - - - - - vtysh -c "show bgp ipv6 neighbor $5" - - - - Show routes advertised to a BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 advertised-routes" - - - - Show routes filtered from a BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 filtered-routes" - - - - Show dampened routes received from BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 dampened-routes" - - - - Show flap statistics of the routes learned from BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 flap-statistics" - - - - Show detailed prefix count information for BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 prefix-counts" - - - - Show information received from BGP neighbor - - - - - Show prefixlist filter - - vtysh -c "show bgp ipv6 neighbor $5 received prefix-filter" - - - - - - Show received routes from BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 received-routes" - - - - Show routes learned from BGP neighbor - - vtysh -c "show bgp ipv6 neighbor $5 routes" - - - - - - Show routes matching the large-community-list number or name - - vtysh -c "show bgp ipv6 large-community-list $5" - - - - Show routes matching the large-community-list number or name - - vtysh -c "show bgp ipv6 large-community-list $5 exact-match" - - - - - - Show routes matching the large-community-list number or name - - vtysh -c "show bgp ipv6 large-community-list $5" - - - - Show routes matching the large-community-list number or name - - vtysh -c "show bgp ipv6 large-community-list $5 exact-match" - - - - - - Show routes conforming to regular expression access list name - - vtysh -c "show bgp ipv6 filter-list $5" - - - - Show BGP information for specified community number - - <AA:NN> local-AS no-advertise no-export - - - vtysh -c "show bgp ipv6 community $5" - - - - Show routes from community that exactly matches the community number - - vtysh -c "show bgp ipv6 community $5 exact-match" - - - - - - Show routes matching the community-list number or name - - vtysh -c "show bgp ipv6 community-list $5" - - - - Show routes exactly matching the community-list name or number - - vtysh -c "show bgp ipv6 community-list $5 exact-match" - - - - - - Show BGP routes matching the specified route map - - policy route-map - - - vtysh -c "show bgp ipv6 route-map $5" - - - - - - Show BGP information for specified IP address or prefix - - <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> - - - vtysh -c "show bgp ipv6 $4" - - - - Show route and more specific routes - - <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> - - - vtysh -c "show bgp ipv6 $4 longer-prefixes" - - - - - - - - -- cgit v1.2.3 From fb2b3c48a47f2f6c28dbe7420eb1a1f691085db1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 20 Feb 2021 19:52:22 +0100 Subject: 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. --- op-mode-definitions/include/bgp-afi-common.xml.i | 10 ++-- .../include/bgp-afi-ipv4-ipv6-common.xml.i | 68 +++++++++++----------- .../include/bgp-prefix-bestpath-multipath.xml.i | 6 +- .../include/vtysh-generic-detail.xml.i | 2 +- op-mode-definitions/show-bgp.xml.in | 56 +++++++++--------- 5 files changed, 71 insertions(+), 71 deletions(-) (limited to 'op-mode-definitions') 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 @@ Exact match of the communities - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -23,18 +23,18 @@ AA:BB:CC - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ RIB advertisement statistics - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Summary of BGP neighbor status - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ 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 @@ Should accept local VPN route if exported and imported into different VRF (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Should accept VPN route with local nexthop (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Inform EBGP peers to blackhole traffic to prefix (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Exact match of the communities - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Graceful shutdown (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Staled Long-lived Graceful Restart VPN route (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Do not send outside local AS (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Do not advertise to any peer (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Do not export to next AS (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Removed because Long-lived Graceful Restart was not enabled for VPN route (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Do not export to any peer (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ RT translated VPNv4 route filtering (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ RT translated VPNv6 route filtering (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ RT VPNv4 route filtering (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ RT VPNv6 route filtering (well-known community) - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -109,10 +109,10 @@ Show BGP routes exactly matching specified community list - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -123,19 +123,19 @@ Display paths suppressed due to dampening - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display flap statistics of routes - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display detail of configured dampening parameters - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -151,13 +151,13 @@ Show BGP routes matching the specified large-communities - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Detailed information on TCP and BGP neighbor connections - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -166,31 +166,31 @@ - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show routes advertised to a BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show dampened routes received from BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show flap statistics of the routes learned from BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show detailed prefix count information for BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -201,7 +201,7 @@ Show prefixlist filter - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -209,13 +209,13 @@ Show received routes from BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show routes learned from BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -223,13 +223,13 @@ Display routes conforming to the prefix-list - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display routes matching the AS path regular expression - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -238,6 +238,6 @@ policy route-map - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ 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 @@ Display only the bestpath - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display only multipaths - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display route and more specific routes - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ 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 @@ Detailed information - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ 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 @@ BGP information - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ #include @@ -19,7 +19,7 @@ #include - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -40,7 +40,7 @@ #include - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -63,7 +63,7 @@ <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> - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -80,13 +80,13 @@ Display BGP Overlay Information for prefixes - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display BGP tags for prefixes - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -94,7 +94,7 @@ Ethernet Segment - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ #include @@ -103,14 +103,14 @@ Ethernet Segment per EVI - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ #include VxLAN Network Identifier - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -118,7 +118,7 @@ Show import route target - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -127,19 +127,19 @@ - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show routes advertised to a BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Show routes learned from BGP neighbor - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -150,19 +150,19 @@ ASN:NN IPADDRESS:NN - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display BGP Overlay Information for prefixes - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Display BGP tags for prefixes - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -170,7 +170,7 @@ EVPN route information - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ #include @@ -182,61 +182,61 @@ EAD (Type-1) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ MAC-IP (Type-2) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Multicast (Type-3) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Ethernet Segment (Type-4) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Prefix (Type-5) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ EAD (Type-1) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Ethernet Segment (Type-4) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ MAC-IP (Type-2) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Multicast (Type-3) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ Prefix (Type-5) route - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -247,7 +247,7 @@ 1-16777215 all - sudo ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ -- cgit v1.2.3