Skip to content

[NXOS] Modified ShowInterfaceStatus parser to accommodate the value 'adminCfgC' #923

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 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------
* NXOS
* Modified ShowInterfaceStatus:
* Updated regex pattern <p1> to accommodate the value 'adminCfgC'.
2 changes: 1 addition & 1 deletion src/genie/libs/parser/nxos/show_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3762,7 +3762,7 @@ def cli(self, interface="", output=None):
# containing any number of blank spaces. This makes it very difficult to use a regular
# expression to dynamically match the status column, so hard-coding offers a happy
# middle ground.
r'(?P<status>connected|disabled|sfpAbsent|noOperMem|notconnec|xcvrAbsen|down|linkFlapE)\s+'
r'(?P<status>connected|disabled|sfpAbsent|noOperMem|notconnec|xcvrAbsen|down|linkFlapE|adminCfgC)\s+'
r'(?P<vlan>\S+)\s+'
r'(?P<duplex_code>\S+)\s+'
r'(?P<port_speed>\S+)\s*'
Expand Down