Closed Kitus20 closed 5 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @kedarX @privateip @rcarrillocruz @trishnaguha click here for bot help
Hi Guys,
Has there been any progress on this at all? This issue affects a sizable chunk of older cisco equipment.
Section Command History
Release | Modification |
---|---|
12.3(2)T | This command was introduced. |
12.2(33)SRE | This command was integrated into Cisco IOS release 12.(33)SRE. |
Any updates on this one? This issue also affects more recent releases (ie IOS 15.0(2)SG10) for particular switch platforms.
lab-4948ef#sho ver
Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-IPBASEK9-M), Version 15.0(2)SG10, RELEASE SOFTWARE (fc1)
lab-4948ef#show running-config | ?
append Append redirected output to URL (URLs supporting append operation only)
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
redirect Redirect output to URL
tee Copy output to URL
So after some contemplation, I have made an attempt at gracefully failing this in the above PR. I have tested it after a fashion by changing section
to something invalid on all platforms, but would like verification that this works with the real issue in question.
needs_info
ISSUE TYPE
COMPONENT NAME
ios_user
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Cisco IOS Software, Version 12.2(55)SE5, RELEASE SOFTWARE (fc1)
SUMMARY
The current ios_user module was tested only against IOS 15.6. When I was trying to use it with older releases (12.2 in my example), I encountered the problem with
show running-config | section username
command, which is invoked by the module, while it is trying to get config. info. about Cisco host.It seems that older IOS versions does not support
section
filter, so when I have made the fallowing change (useinclude
filter instead ofsection
):module works fine. I was able to change user's password, create/delete user, set user's privileges etc.
Maybe it is worth to make this little change to get compatibility with older versions. Please note that I have not made the detailed tests on the module after the change, but I was able to run all my playbooks where I was using it.
STEPS TO REPRODUCE
EXPECTED RESULTS
Password for testUser will be changed on the Cisco switch with IOS 12.2
ACTUAL RESULTS