mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
fix formatting
This commit is contained in:
@ -51,9 +51,9 @@ hyperglass is intended to make implementing a looking glass too easy not to do,
|
||||
- Huawei
|
||||
- Juniper JunOS
|
||||
- Mikrotik
|
||||
- Nokia SR OS
|
||||
- TNSR
|
||||
- VyOS
|
||||
- Nokia SR OS
|
||||
- Configurable support for any other [supported platform](https://hyperglass.io/docs/platforms)
|
||||
- Optionally access devices via an SSH proxy/jump server
|
||||
- VRF support
|
||||
|
@ -11,9 +11,9 @@ from .juniper import JuniperCommands
|
||||
from .cisco_xr import CiscoXRCommands
|
||||
from .cisco_ios import CiscoIOSCommands
|
||||
from .cisco_nxos import CiscoNXOSCommands
|
||||
from .nokia_sros import NokiaSROSCommands
|
||||
from .mikrotik_routeros import MikrotikRouterOS
|
||||
from .mikrotik_switchos import MikrotikSwitchOS
|
||||
from .nokia_sros import NokiaSROSCommands
|
||||
|
||||
_NOS_MAP = {
|
||||
"arista": AristaCommands,
|
||||
@ -24,9 +24,9 @@ _NOS_MAP = {
|
||||
"juniper": JuniperCommands,
|
||||
"mikrotik_routeros": MikrotikRouterOS,
|
||||
"mikrotik_switchos": MikrotikSwitchOS,
|
||||
"nokia_sros": NokiaSROSCommands,
|
||||
"tnsr": TNSRCommands,
|
||||
"vyos": VyosCommands,
|
||||
"nokia_sros": NokiaSROSCommands,
|
||||
}
|
||||
|
||||
|
||||
@ -41,9 +41,9 @@ class Commands(HyperglassModelExtra):
|
||||
huawei: CommandGroup = HuaweiCommands()
|
||||
mikrotik_routeros: CommandGroup = MikrotikRouterOS()
|
||||
mikrotik_switchos: CommandGroup = MikrotikSwitchOS()
|
||||
nokia_sros: CommandGroup = NokiaSROSCommands()
|
||||
tnsr: CommandGroup = TNSRCommands()
|
||||
vyos: CommandGroup = VyosCommands()
|
||||
nokia_sros: CommandGroup = NokiaSROSCommands()
|
||||
|
||||
@classmethod
|
||||
def import_params(cls, **input_params):
|
||||
|
@ -9,46 +9,42 @@ 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_aspath: StrictStr = "/show router bgp routes aspath-regex {target}"
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} ipv4 hunt"
|
||||
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):
|
||||
"""Default commands for ipv6 commands."""
|
||||
|
||||
bgp_community: StrictStr = "/show router bgp routes community {target}"
|
||||
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"
|
||||
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):
|
||||
"""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_aspath: StrictStr = "/show router bgp routes aspath-regex {target}"
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv4 hunt"
|
||||
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):
|
||||
"""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_aspath: StrictStr = "/show router bgp routes aspath-regex {target}"
|
||||
bgp_route: StrictStr = "/show router bgp routes {target} vpn-ipv6 hunt"
|
||||
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):
|
||||
|
Reference in New Issue
Block a user