1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

fix formatting

This commit is contained in:
checktheroads
2020-05-29 17:50:30 -07:00
parent b0b6b67c5c
commit 19e3cc0ab1
3 changed files with 3 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ class Query(BaseModel):
@property
def device(self):
"""Get this query's device object by query_location."""
return getattr(devices, self.query_location)
def export_dict(self):

View File

@@ -93,7 +93,6 @@ class QueryResponse(BaseModel):
"example": "2020-04-18 14:45:37",
},
"format": {
# "alias": "format",
"title": "Format",
"description": "Response [MIME Type](http://www.iana.org/assignments/media-types/media-types.xhtml). Supported values: `text/plain` and `application/json`.",
"example": "text/plain",

View File

@@ -1,3 +1,5 @@
"""Map NOS and Commands to Parsing Functions."""
# Project
from hyperglass.parsing.juniper import parse_juniper