mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
fix juniper route table parsing error
This commit is contained in:
@@ -15,7 +15,9 @@ def parse_juniper(output):
|
||||
data = {}
|
||||
for i, response in enumerate(output):
|
||||
try:
|
||||
parsed = xmltodict.parse(response, force_list=("rt", "rt-entry"))
|
||||
parsed = xmltodict.parse(
|
||||
response, force_list=("rt", "rt-entry", "community")
|
||||
)
|
||||
|
||||
if "rpc-reply" in parsed.keys():
|
||||
parsed = parsed["rpc-reply"]["route-information"]["route-table"]
|
||||
|
Reference in New Issue
Block a user