Closed bdlamprecht closed 6 years ago
Also for IOS-XE
Cisco IOS XE Software, Version 03.13.06a.S - Extended Support Release Cisco IOS Software, ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9_NOLI-M), Version 15.4(3)S6a, RELEASE SOFTWARE (fc2)
[4:51]
it shows both the XE version `03.13.06a.S` and the wrapped IOS version `X86_64_LINUX_IOSD-UNIVERSALK9_NOLI-M), Version 15.4(3)S6a`
[4:51]
the XE version is what you want to return i think
[4:51]
that is on an asr1001
Also want to retain the:
advipservicesk9-m
I think this is dangerous. I would suggest returning the filename: s72033-advipservicesk9-mz.151-2.SY9
without the extension. Cisco encodes a lot of information there and they are anything but consistent so the only way to play it safe is probably by removing the extension of the filename. Also, due to the lack of consistency it's easier to reason about this if we just say "the version on IOS is just the filename with the extension stripped".
Hi @bdlamprecht - we are currently in the process of reunification, please check https://napalm-automation.net/reunification/. For the time being, we have moved this issue to https://github.com/napalm-automation/napalm/issues/469 so we can discuss further. Going forward, we'd like to ask you to submit Pull Requests and Issues to the main repository: https://github.com/napalm-automation/napalm
Thanks for understanding!
Description of Issue/Question
When using the generic NAPALM function
get_facts
against anios
device, the whole string from the command "show version" is returned, not just the software version (like ajunos
device does).Did you follow the steps from https://github.com/napalm-automation/napalm#faq
Setup
napalm-ios version
(Paste verbatim output from
pip freeze | grep napalm-ios
between quotes below)IOS version
(Paste verbatim output from
show version
between quotes below)Steps to Reproduce the Issue
When executing the
get_facts
function against the device above, theos_version
variable that is returned contains the strings72033_rp Software (s72033_rp-ADVIPSERVICESK9-M), Version 15.1(2)SY9, RELEASE SOFTWARE (fc1)"
and not just15.1(2)SY9
(similar to the way ajunos
device returns something like12.3R7.7
).Error Traceback
N/A
FYI, @ktbyers requested this bug to be opened.