Skip to content

Parse VLAN names containing colons in IOS XE show vlan brief - #1010

Open
mangeshraut712 wants to merge 2 commits into
CiscoTestAutomation:mainfrom
mangeshraut712:fix/iosxe-vlan-brief-colon
Open

mangeshraut712 wants to merge 2 commits into
CiscoTestAutomation:mainfrom
mangeshraut712:fix/iosxe-vlan-brief-colon

Conversation

@mangeshraut712

@mangeshraut712 mangeshraut712 commented Nov 29, 2026 •

Copy link
Copy Markdown

Fixes #988. The IOS XE brief parser skipped VLAN names containing a colon. Accept the character in rows with and without ports, preserving the port list.

On upstream main the new synthetic fixture returned only VLAN 10. With this change all three rows are present. All three ShowVlanBrief fixture tests and all six ShowVlan tests passed on Python 3.11. Includes an undistributed changelog entry. No device connection was needed.

Broader verification on 849a8e01: ran the repository's file-based unittest runner for the entire IOS XE parser family (python src/genie/libs/parser/utils/unittests.py -o iosxe -f). The runner reported 8,586 unit tests with zero failures and zero errors. The separate direct fixture check also verified that the module was imported from the PR checkout.

@mangeshraut712
mangeshraut712 requested a review from a team as a code owner November 29, 2026 11:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T13:10:30.179644Z 5678220 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mangeshraut712

Copy link
Copy Markdown
Author

Follow-up on 5678220: a VLAN brief row such as EAST:DATA active Gi1/0/1,Gi1/0/2 previously returned one joined port name. The parser now treats commas as separators even when they are adjacent to the port names. The updated recorded fixture covers the compact form, and direct parser checks also passed for spaced commas and whitespace-only separators.

The complete IOS XE file-based suite against the updated parser and fixture passed all 8,586 tests with zero failures or errors (Python 3.11, no switch connection).

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.

Genie show vlan brief parser fails when VLAN names contain :

1 participant