-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-XR get_environment() throws an error in 6.3.2 on NCS5501 #1181
Comments
Seems like have been reworked in later versions. I'm on IOSXR 7.0.2 and i couldn't find anything regarding inventory under the adminoperational.
This seems to get some information regarding physical entities tho. |
It looks like this got moved under @n-holmstedt if you have multiple devices available, would you be able to confirm the following output on XR 7+ in
Instead it's available under:
For XR 6 and earlier, |
Would anyone be able to test #1400 and confirm it solves this issue? |
Resolve #1181 and reduce the get_facts heavy workload
Description of Issue/Question
Note: Please check https://guides.github.com/features/mastering-markdown/
to see how to properly format your request.
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
XML RPC
I dug into the XML and found an error in the format for the RPC call here: https://github.com/napalm-automation/napalm/blob/develop/napalm/iosxr/iosxr.py#L662
When I corrected the RPC call I was able to get the memory values.
rpc_command = '<Get><Operational><MemorySummary></MemorySummary></Operational></Get>'
However, that resulted in yet another issue with the
active modules
. This: https://github.com/napalm-automation/napalm/blob/develop/napalm/iosxr/iosxr.py#L669Resulted in:
XML Data
I've included two XML files that are being returned by the device in the current configuration. I wasn't able to pinpoint the exact cause of the error in the code but it does appear to expect a value or set of values that are not there.
xml-active-modules.xml.log
From: https://github.com/napalm-automation/napalm/blob/develop/napalm/iosxr/iosxr.py#L589
xml-result.xml.log
From: https://github.com/napalm-automation/napalm/blob/develop/napalm/iosxr/iosxr.py#L664
The text was updated successfully, but these errors were encountered: