mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
Flake8 validations.
This commit is contained in:
@@ -13,7 +13,9 @@ class _IPv4(CommandSet):
|
|||||||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||||
bgp_route: StrictStr = "/show router bgp routes {target} ipv4 hunt"
|
bgp_route: StrictStr = "/show router bgp routes {target} ipv4 hunt"
|
||||||
ping: StrictStr = "/ping {target} source-address {source}"
|
ping: StrictStr = "/ping {target} source-address {source}"
|
||||||
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
|
traceroute: StrictStr = (
|
||||||
|
"/traceroute {target} source-address {source} wait 2 seconds"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class _IPv6(CommandSet):
|
class _IPv6(CommandSet):
|
||||||
@@ -22,7 +24,10 @@ class _IPv6(CommandSet):
|
|||||||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||||
bgp_route: StrictStr = "/show router bgp routes {target} ipv6 hunt"
|
bgp_route: StrictStr = "/show router bgp routes {target} ipv6 hunt"
|
||||||
ping: StrictStr = "/ping {target} source-address {source}"
|
ping: StrictStr = "/ping {target} source-address {source}"
|
||||||
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
|
traceroute: StrictStr = (
|
||||||
|
"/traceroute {target} source-address {source} wait 2 seconds"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class _VPNIPv4(CommandSet):
|
class _VPNIPv4(CommandSet):
|
||||||
"""Default commands for dual afi commands."""
|
"""Default commands for dual afi commands."""
|
||||||
@@ -30,7 +35,10 @@ class _VPNIPv4(CommandSet):
|
|||||||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||||
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv4 hunt"
|
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv4 hunt"
|
||||||
ping: StrictStr = "/ping {target} source-address {source}"
|
ping: StrictStr = "/ping {target} source-address {source}"
|
||||||
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
|
traceroute: StrictStr = (
|
||||||
|
"/traceroute {target} source-address {source} wait 2 seconds"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class _VPNIPv6(CommandSet):
|
class _VPNIPv6(CommandSet):
|
||||||
"""Default commands for dual afi commands."""
|
"""Default commands for dual afi commands."""
|
||||||
@@ -38,7 +46,10 @@ class _VPNIPv6(CommandSet):
|
|||||||
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
bgp_aspath: StrictStr = '/show router bgp routes aspath-regex {target}'
|
||||||
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv6 hunt"
|
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv6 hunt"
|
||||||
ping: StrictStr = "/ping {target} source-address {source}"
|
ping: StrictStr = "/ping {target} source-address {source}"
|
||||||
traceroute: StrictStr = "/traceroute {target} source-address {source} wait 2 seconds"
|
traceroute: StrictStr = (
|
||||||
|
"/traceroute {target} source-address {source} wait 2 seconds"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class NokiaSROSCommands(CommandGroup):
|
class NokiaSROSCommands(CommandGroup):
|
||||||
"""Validation model for default nokia_sros commands."""
|
"""Validation model for default nokia_sros commands."""
|
||||||
|
Reference in New Issue
Block a user