Skip to content

Adjusts parser for "show ap cdp neighbor" #948

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

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

Conversation

jamiereid
Copy link

Description

Resolves #723

Adjust regex to include the ap neighbor IP as it is output on 9800 platform v17.x

Motivation and Context

The parser fails as it's not able to match when the ap cdp neighbor IP is in the same line as the other information.

Resolves CiscoTestAutomation#723

Adjust regex to include the ap neighbor IP as it is output on 9800
platform v17.x
@jamiereid jamiereid requested a review from a team as a code owner June 11, 2025 07:19
@jamiereid jamiereid requested review from ThomasJRyan and Taarini June 11, 2025 07:19
Copy link
Collaborator

@ThomasJRyan ThomasJRyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.

A few things

  1. Please include a unittest for this change. You can find existing unittests for this parser here

  2. While I won't hold it against you, since you're updating this parser anyways I would appreciate if you could update line 1152 from Optional("neighbor_ip_addresses"): list to Optional("neighbor_ip_addresses"): ListOf(str) as it's a bit out of date for what we expect from a parser these days

@jamiereid
Copy link
Author

Thank you @ThomasJRyan, and apologies for the delay in response. I have pushed some additional commits that (hopefully correctly) addresses your feedback. Please let me know :)

@jamiereid jamiereid requested a review from ThomasJRyan June 17, 2025 04:12
@ThomasJRyan
Copy link
Collaborator

Looks like your changes are causing existing unittests to fail.

image

This will need to be fixed up before we can merge. You can run the unittests locally by going into the tests folder and running the folder_parsing_job.py file

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.

iosxe - show ap cdp neighbor not working
2 participants