Skip to content
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

fix cliconf for IOS XRd #510

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jmussmann
Copy link

SUMMARY

The collection does not work with IOS XRd and cliconf.
This PR fixes #509 to allow connections to IOS XRd with cliconf.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • plugins/cliconf/iosxr.py
ADDITIONAL INFORMATION

The problem is, that IOS XRd does not support the "show inventory" command.
As a solution, I set the output to an empty string if the command fails.

@Ruchip16
Copy link
Contributor

@jmussmann can you please add relevant tests to vaildate the change?

@jmussmann
Copy link
Author

@Ruchip16 thank you for the hint. I added the tests.

@sdargoeuves
Copy link

@Ruchip16 would it be possible to merge this fix, please?
I have an issue using this ansible galaxy on Cisco IOS XRd, due to the command show inventory not existing on such device.
That would be amazing, my current workaround is to use the fork by @jmussmann (thank you for providing the fix!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cliconf does not work with IOS XRd
3 participants