Repository navigation
Parse VLAN names containing colons in IOS XE show vlan brief - #1010
mangeshraut712 wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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). |
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.