From 21d97ba0651fc20bded91e22e00a402d0044da3c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 18 May 2021 22:28:47 +0200 Subject: op-mode: drop full path to iproute2 binary --- op-mode-definitions/ipv4-route.xml.in | 8 ++++---- op-mode-definitions/show-interfaces-macsec.xml.in | 4 ++-- op-mode-definitions/show-vrf.xml.in | 2 +- op-mode-definitions/traceroute.xml.in | 20 ++++++++++---------- 4 files changed, 17 insertions(+), 17 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/ipv4-route.xml.in b/op-mode-definitions/ipv4-route.xml.in index 1bda3ac11..aab3df0f1 100644 --- a/op-mode-definitions/ipv4-route.xml.in +++ b/op-mode-definitions/ipv4-route.xml.in @@ -43,7 +43,7 @@ <x.x.x.x> - sudo /sbin/ip neigh flush to "$5" + sudo ip neigh flush to "$5" @@ -52,7 +52,7 @@ - sudo /sbin/ip neigh flush dev "$5" + sudo ip neigh flush dev "$5" @@ -66,7 +66,7 @@ Flush the kernel route cache - sudo /sbin/ip route flush cache + sudo ip route flush cache @@ -76,7 +76,7 @@ <x.x.x.x> <x.x.x.x/x> - sudo /sbin/ip route flush cache "$5" + sudo ip route flush cache "$5" diff --git a/op-mode-definitions/show-interfaces-macsec.xml.in b/op-mode-definitions/show-interfaces-macsec.xml.in index 6aeab66af..a264ff22e 100644 --- a/op-mode-definitions/show-interfaces-macsec.xml.in +++ b/op-mode-definitions/show-interfaces-macsec.xml.in @@ -11,7 +11,7 @@ interfaces macsec - /usr/sbin/ip macsec show + ip macsec show @@ -20,7 +20,7 @@ interfaces macsec - /usr/sbin/ip macsec show $4 + ip macsec show $4 diff --git a/op-mode-definitions/show-vrf.xml.in b/op-mode-definitions/show-vrf.xml.in index 438e7c334..9c38c30fe 100644 --- a/op-mode-definitions/show-vrf.xml.in +++ b/op-mode-definitions/show-vrf.xml.in @@ -21,7 +21,7 @@ Shows all process ids associated with VRF - /usr/sbin/ip vrf pids "$3" + ip vrf pids "$3" diff --git a/op-mode-definitions/traceroute.xml.in b/op-mode-definitions/traceroute.xml.in index 1b619ed43..e3217235c 100644 --- a/op-mode-definitions/traceroute.xml.in +++ b/op-mode-definitions/traceroute.xml.in @@ -90,7 +90,7 @@ <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute "$4" + sudo ip vrf exec "$3" /usr/bin/traceroute "$4" @@ -99,13 +99,13 @@ <hostname> <x.x.x.x> - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -4 "$5" + sudo ip vrf exec "$3" /usr/bin/traceroute -4 "$5" Route tracing and port detection using TCP - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" + sudo ip vrf exec "$3" /usr/bin/tcptraceroute "$5" @@ -114,7 +114,7 @@ 0-65535 - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" $8 + sudo ip vrf exec "$3" /usr/bin/tcptraceroute "$5" $8 @@ -127,13 +127,13 @@ <hostname> <h:h:h:h:h:h:h:h> - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -6 "$5" + sudo ip vrf exec "$3" /usr/bin/traceroute -6 "$5" Use TCP/IPv6 packets to perform a traceroute - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" + sudo ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" @@ -142,7 +142,7 @@ 0-65535 - sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" $8 + sudo ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" $8 @@ -198,7 +198,7 @@ <fqdn> - sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr -4 "$6" + sudo ip vrf exec "$4" /usr/bin/mtr -4 "$6" @@ -207,7 +207,7 @@ <fqdn> - sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr -6 "$6" + sudo ip vrf exec "$4" /usr/bin/mtr -6 "$6" @@ -216,7 +216,7 @@ <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr "$5" + sudo ip vrf exec "$4" /usr/bin/mtr "$5" -- cgit v1.2.3