mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
Minor improvements
This commit is contained in:
parent
08e5040842
commit
ab6fc116ca
3 changed files with 7 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@ test.py
|
|||
.DS_Store
|
||||
.idea
|
||||
.vscode
|
||||
old_*.py
|
||||
#
|
||||
# Github Default from https://github.com/martinohanlon/flightlight/issues/1
|
||||
# Byte-compiled / optimized / DLL files
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"""hyperglass REST API & Web UI."""
|
||||
|
||||
# Standard Library
|
||||
import sys
|
||||
from typing import List
|
||||
from pathlib import Path
|
||||
|
||||
|
|
@ -265,4 +266,7 @@ def start(**kwargs):
|
|||
"""Start the web server with Uvicorn ASGI."""
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run("hyperglass.api:app", **ASGI_PARAMS, **kwargs)
|
||||
try:
|
||||
uvicorn.run("hyperglass.api:app", **ASGI_PARAMS, **kwargs)
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(1)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class _IPv6(CommandSet):
|
|||
bgp_community: StrictStr = "show bgp ipv6 unicast community {target}"
|
||||
bgp_aspath: StrictStr = 'show bgp ipv6 unicast quote-regexp "{target}"'
|
||||
bgp_route: StrictStr = "show bgp ipv6 unicast {target} | exclude pathid:|Epoch"
|
||||
ping: StrictStr = ("ping ipv6 {target} repeat 5 source {source}")
|
||||
ping: StrictStr = "ping ipv6 {target} repeat 5 source {source}"
|
||||
traceroute: StrictStr = (
|
||||
"traceroute ipv6 {target} timeout 1 probe 2 source {source}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue