Fixing commands removing Vrf at all

This commit is contained in:
Pau Nadeu Rabat 2021-01-18 21:30:57 +01:00
parent bae43b6585
commit 2497f79405

View file

@ -12,8 +12,8 @@ class _IPv4(CommandSet):
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 {target} router-instance source-address {source} wait 2 seconds"
ping: StrictStr = "/ping {target} source-address {source}"
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
class _IPv6(CommandSet):
@ -21,24 +21,24 @@ class _IPv6(CommandSet):
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} ipv6 hunt"
ping: StrictStr = "/ping {target} router-instance source-address {source}"
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
ping: StrictStr = "/ping {target} source-address {source}"
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
class _VPNIPv4(CommandSet):
"""Default commands for dual afi 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} vpn-ipv4 hunt"
ping: StrictStr = "/ping {target} router-instance source-address {source}"
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
ping: StrictStr = "/ping {target} source-address {source}"
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
class _VPNIPv6(CommandSet):
"""Default commands for dual afi 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} vpn-ipv6 hunt"
ping: StrictStr = "/ping {target} router-instance source-address {source}"
traceroute: StrictStr = "/traceroute {target} router-instance source-address {source} wait 2 seconds"
ping: StrictStr = "/ping {target} source-address {source}"
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
class NokiaSROSCommands(CommandGroup):
"""Validation model for default nokia_sros commands."""