Skip to content

CDP neighbors: Key result on local interface, instead of remote host#134

Open
hvanderheide wants to merge 1 commit intonetwork-unit-testing-system:mainfrom
hvanderheide:cdp-int-keying
Open

CDP neighbors: Key result on local interface, instead of remote host#134
hvanderheide wants to merge 1 commit intonetwork-unit-testing-system:mainfrom
hvanderheide:cdp-int-keying

Conversation

@hvanderheide
Copy link

The result of the "show cdp neighbors" command is currently keyed by the remote hostname. This will cause issues when there is a redundant path between two hosts, as the same key can't hold two interfaces/connections.

This PR changes the key to the local interface, similar to the NAPALM LLDP tests. The assertions have grown a little more complex to keep the same "interface" and not break existing test bundles.

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.

1 participant