forked from mirrors/thatmattlove-hyperglass
Fixed traceroute command
This commit is contained in:
parent
b41a5324c1
commit
bae43b6585
1 changed files with 4 additions and 5 deletions
|
|
@ -9,12 +9,11 @@ from .common import CommandSet, CommandGroup
|
|||
|
||||
class _IPv4(CommandSet):
|
||||
"""Default commands for ipv4 commands."""
|
||||
|
||||
bgp_community: StrictStr = "/show router bgp routes community {target}"
|
||||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} ipv4 hunt"
|
||||
ping: StrictStr = "/ping {target} router-instance source-address {source}"
|
||||
traceroute: StrictStr = "traceroute: /traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
|
||||
|
||||
class _IPv6(CommandSet):
|
||||
|
|
@ -23,7 +22,7 @@ class _IPv6(CommandSet):
|
|||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} ipv6 hunt"
|
||||
ping: StrictStr = "/ping {target} router-instance source-address {source}"
|
||||
traceroute: StrictStr = "traceroute: /traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
|
||||
class _VPNIPv4(CommandSet):
|
||||
"""Default commands for dual afi commands."""
|
||||
|
|
@ -31,7 +30,7 @@ class _VPNIPv4(CommandSet):
|
|||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv4 hunt"
|
||||
ping: StrictStr = "/ping {target} router-instance source-address {source}"
|
||||
traceroute: StrictStr = "traceroute: /traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
|
||||
class _VPNIPv6(CommandSet):
|
||||
"""Default commands for dual afi commands."""
|
||||
|
|
@ -39,7 +38,7 @@ class _VPNIPv6(CommandSet):
|
|||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv6 hunt"
|
||||
ping: StrictStr = "/ping {target} router-instance source-address {source}"
|
||||
traceroute: StrictStr = "traceroute: /traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
|
||||
|
||||
class NokiaSROSCommands(CommandGroup):
|
||||
"""Validation model for default nokia_sros commands."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue