Skip to content

Update 1.0.3 XML Parse Error JunOS 19.4 #151

Description

@mcmufffin

Hello, i just upgrade from 1.0.0 to 1.0.3 and on JunOS 19.4R3-S2.2 it seems like the XML cant be parsed anymore.

expected:

Giving Table output like in 1.0.0

reproduce:

Install Hyperglass 1.0.3 on JunOS 19.4R3-S2.2 and try to check any bgp route

Logs

Jul 02 19:42:15 hyperglas hyperglass[20576]: [INFO] 20210702 19:42:15 | scrapli.driver.base.base_driver:949 | _post_open_closing_log → connection to 'somerouterip' on port '22' closed successfully
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.execution.drivers._common:34 | parsed_response → Pre-parsed responses:
Jul 02 19:42:15 hyperglas hyperglass[20576]: ('<rpc-reply xmlns:junos="http://xml.juniper.net/junos/19.4R0/junos">\n    <route-information xmlns="http://xml.juniper.net/junos/19.4R0/junos-routing">\n        <route-table>\n            <table-name>inet.0</table-name>\n
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.parsing.juniper:65 | parse_juniper → Initially Parsed Response:
Jul 02 19:42:15 hyperglas hyperglass[20576]: OrderedDict([('rpc-reply', OrderedDict([('@xmlns:junos', 'http://xml.juniper.net/junos/19.4R0/junos'), ('route-information', OrderedDict([('@xmlns', 'http://xml.juniper.net/junos/19.4R0/junos-routing'), ('route-table', Orde
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.models.parsing.juniper:200 | serialize → Serialized Juniper response: vrf='default' count=8 routes=[ParsedRouteEntry(prefix='8.8.8.0/24', active=True, age=508377, weight=170, med=0, lo
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.parsing.juniper:65 | parse_juniper → Initially Parsed Response:
Jul 02 19:42:15 hyperglas hyperglass[20576]: OrderedDict([('rpc-reply', OrderedDict([('@xmlns:junos', 'http://xml.juniper.net/junos/19.4R0/junos'), ('xnm:error', OrderedDict([('@xmlns', 'http://xml.juniper.net/xnm/1.1/xnm'), ('@xmlns:xnm', 'http://xml.juniper.net/xnm/
Jul 02 19:42:15 hyperglas hyperglass[20576]: [CRITICAL] 20210702 19:42:15 | hyperglass.parsing.juniper:93 | parse_juniper → 'route-information' was not found in the response
Jul 02 19:42:15 hyperglas hyperglass[20576]: [CRITICAL] 20210702 19:42:15 | hyperglass.exceptions:40 | __init__ → [DANGER] Error parsing response data

Possible Solution

Downgrade to 1.0.0

Environment

Server

Metric Value
hyperglass Version 1.0.0 (allready downgraded again)
hyperglass Path /etc/hyperglass
Python Version 3.7.3
Platform Info Linux-4.19.0-17-amd64-x86_64-with-debian-10.10
CPU Info Common KVM processor
Logical Cores 2
Physical Cores 2
Processor Speed 3.312042GHz
Total Memory 4.14 GB
Memory Utilization 12.7%
Total Disk Space 19.67 GB
Disk Utilization 21.6%

Client

Firefox 89 - Windows 10 1809

Thanks!

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedIssue is confirmed and will be worked onbugConfirmed bug or unexpected behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions