From 7d903fab90866dd650f49617cd478c2a85e01e0d Mon Sep 17 00:00:00 2001 From: Suhas Bharadwaj Date: Mon, 27 Jan 2025 21:57:58 +0530 Subject: [PATCH 1/2] Create changelog_show_interface_nxos_20250127214524.rst Add changelog --- .../changelog_show_interface_nxos_20250127214524.rst | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changelog/undistributed/changelog_show_interface_nxos_20250127214524.rst diff --git a/changelog/undistributed/changelog_show_interface_nxos_20250127214524.rst b/changelog/undistributed/changelog_show_interface_nxos_20250127214524.rst new file mode 100644 index 0000000000..db033e4f4f --- /dev/null +++ b/changelog/undistributed/changelog_show_interface_nxos_20250127214524.rst @@ -0,0 +1,6 @@ +-------------------------------------------------------------------------------- + Fix +-------------------------------------------------------------------------------- +* NXOS + * Modified ShowInterfaceStatus: + * Updated regex pattern to accommodate the value 'adminCfgC'. From 0e2e53450f545f304bf97c15831837bd4375e4cd Mon Sep 17 00:00:00 2001 From: Suhas Bharadwaj Date: Mon, 27 Jan 2025 21:59:34 +0530 Subject: [PATCH 2/2] Update show_interface.py Modified ShowInterfaceStatus parser to accommodate the value 'adminCfgC' for status field --- src/genie/libs/parser/nxos/show_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/genie/libs/parser/nxos/show_interface.py b/src/genie/libs/parser/nxos/show_interface.py index 356b8aef29..4a4f4bfdab 100755 --- a/src/genie/libs/parser/nxos/show_interface.py +++ b/src/genie/libs/parser/nxos/show_interface.py @@ -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'(?Pconnected|disabled|sfpAbsent|noOperMem|notconnec|xcvrAbsen|down|linkFlapE)\s+' + r'(?Pconnected|disabled|sfpAbsent|noOperMem|notconnec|xcvrAbsen|down|linkFlapE|adminCfgC)\s+' r'(?P\S+)\s+' r'(?P\S+)\s+' r'(?P\S+)\s*'