From a6de16666ba85b4567d0001b47838c9a621a4a7b Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 22 Jul 2019 12:45:35 -0500 Subject: [PATCH] fix configuration for ping commands fix configuration for ping commands --- hyperglass/configuration/commands.toml.example | 8 ++++---- tests/commands.toml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hyperglass/configuration/commands.toml.example b/hyperglass/configuration/commands.toml.example index 78e9145..5c9ae8c 100644 --- a/hyperglass/configuration/commands.toml.example +++ b/hyperglass/configuration/commands.toml.example @@ -17,11 +17,11 @@ bgp_community = 'show bgp all unicast community {target} | utility egrep -v "\(B bgp_aspath = 'show bgp all unicast regexp {target} | utility egrep -v "\(BGP |Table |Non-stop\)"' [cisco_xr.ipv4] bgp_route = 'show bgp ipv4 unicast {target} | util egrep "\(BGP routing table entry|Path \#|aggregated by|Origin |Community:|validity| from \)"' -ping = "ping ipv4 {target} count 5 source {src_addr_ipv4}" +ping = "ping ipv4 {target} count 5 source {source}" traceroute = "traceroute ipv4 {target} timeout 1 probe 2 source {source}" [cisco_xr.ipv6] bgp_route = 'show bgp ipv6 unicast {target} | util egrep "\(BGP routing table entry|Path \#|aggregated by|Origin |Community:|validity| from \)"' -ping = "ping ipv6 {target} count 5 source {src_addr_ipv6}" +ping = "ping ipv6 {target} count 5 source {source}" traceroute = "traceroute ipv6 {target} timeout 1 probe 2 source {source}" [[juniper]] @@ -30,9 +30,9 @@ bgp_community = "show route protocol bgp community {target}" bgp_aspath = "show route protocol bgp aspath-regex {target}" [juniper.ipv4] bgp_route = "show route protocol bgp table inet.0 {target} detail" -ping = "ping inet {target} count 5 source {src_addr_ipv4}" +ping = "ping inet {target} count 5 source {source}" traceroute = "traceroute inet {target} wait 1 source {source}" [juniper.ipv6] bgp_route = "show route protocol bgp table inet6.0 {target} detail" -ping = "ping inet6 {target} count 5 source {src_addr_ipv6}" +ping = "ping inet6 {target} count 5 source {source}" traceroute = "traceroute inet6 {target} wait 1 source {source}" diff --git a/tests/commands.toml b/tests/commands.toml index 78e9145..5c9ae8c 100644 --- a/tests/commands.toml +++ b/tests/commands.toml @@ -17,11 +17,11 @@ bgp_community = 'show bgp all unicast community {target} | utility egrep -v "\(B bgp_aspath = 'show bgp all unicast regexp {target} | utility egrep -v "\(BGP |Table |Non-stop\)"' [cisco_xr.ipv4] bgp_route = 'show bgp ipv4 unicast {target} | util egrep "\(BGP routing table entry|Path \#|aggregated by|Origin |Community:|validity| from \)"' -ping = "ping ipv4 {target} count 5 source {src_addr_ipv4}" +ping = "ping ipv4 {target} count 5 source {source}" traceroute = "traceroute ipv4 {target} timeout 1 probe 2 source {source}" [cisco_xr.ipv6] bgp_route = 'show bgp ipv6 unicast {target} | util egrep "\(BGP routing table entry|Path \#|aggregated by|Origin |Community:|validity| from \)"' -ping = "ping ipv6 {target} count 5 source {src_addr_ipv6}" +ping = "ping ipv6 {target} count 5 source {source}" traceroute = "traceroute ipv6 {target} timeout 1 probe 2 source {source}" [[juniper]] @@ -30,9 +30,9 @@ bgp_community = "show route protocol bgp community {target}" bgp_aspath = "show route protocol bgp aspath-regex {target}" [juniper.ipv4] bgp_route = "show route protocol bgp table inet.0 {target} detail" -ping = "ping inet {target} count 5 source {src_addr_ipv4}" +ping = "ping inet {target} count 5 source {source}" traceroute = "traceroute inet {target} wait 1 source {source}" [juniper.ipv6] bgp_route = "show route protocol bgp table inet6.0 {target} detail" -ping = "ping inet6 {target} count 5 source {src_addr_ipv6}" +ping = "ping inet6 {target} count 5 source {source}" traceroute = "traceroute inet6 {target} wait 1 source {source}"