-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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_facts: Add check to skip lldp neighbors if lldp doesn't exist or isn't enabled. #40109
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansibot
added
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
networking
Network category
support:network
This issue/PR relates to code supported by the Ansible Network Team.
labels
May 14, 2018
Closing for now as the issue is higher up in the IOS logic and was actually a regression since ansible/ansible-modules-core#5491 |
Hey, this actually is almost right, give me a minute |
ansibot
added
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
and removed
needs_triage
Needs a first human triage before being processed.
labels
May 14, 2018
Qalthos
approved these changes
May 14, 2018
ansibot
removed
the
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
label
May 15, 2018
Oh no, you rebased and removed my commit. I can add it back on, but you'll need to pull afterwards. |
ansibot
added
the
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
label
May 15, 2018
Qalthos
pushed a commit
to Qalthos/ansible
that referenced
this pull request
May 16, 2018
…isn't enabled. (ansible#40109) * Add check to skip lldp neighbors if lldp doesn't exist or isn't enabled. * Re-enable check_rc on ios' run_commands (cherry picked from commit 39bed45)
jacum
pushed a commit
to jacum/ansible
that referenced
this pull request
Jun 26, 2018
…isn't enabled. (ansible#40109) * Add check to skip lldp neighbors if lldp doesn't exist or isn't enabled. * Re-enable check_rc on ios' run_commands
ilicmilan
pushed a commit
to ilicmilan/ansible
that referenced
this pull request
Nov 7, 2018
…isn't enabled. (ansible#40109) * Add check to skip lldp neighbors if lldp doesn't exist or isn't enabled. * Re-enable check_rc on ios' run_commands
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
This issue/PR relates to a bug.
cisco
Cisco technologies
core_review
In order to be merged, this PR must follow the core review workflow.
ios
Cisco IOS community
module
This issue/PR relates to a module.
networking
Network category
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
support:network
This issue/PR relates to code supported by the Ansible Network Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fixes #37507
Older IOS devices that don't support LLDP fail when including
interfaces
as part ofios_facts
. This commit adds a check for any IOS errors when running the commandshow lldp
and skips the LLDP neighbor parsing if LLDP isn't available.ISSUE TYPE
COMPONENT NAME
ios_facts
ANSIBLE VERSION
ADDITIONAL INFORMATION
With LLDP enabled with no neighbors:
With no LLDP enabled (should be same for no LLDP support:
I don't have the ability to test on a device that doesn't support LLDP at all - however the check logic should be the same regardless if the error string is present.