mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
fix formatting
This commit is contained in:
@@ -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):
|
||||
|
@@ -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",
|
||||
|
@@ -1,3 +1,5 @@
|
||||
"""Map NOS and Commands to Parsing Functions."""
|
||||
|
||||
# Project
|
||||
from hyperglass.parsing.juniper import parse_juniper
|
||||
|
||||
|
Reference in New Issue
Block a user