From e05ae86ef979accc3554f68ecc3bbf90b08caf87 Mon Sep 17 00:00:00 2001 From: Zachary Puls Date: Tue, 17 Sep 2024 09:21:01 -0500 Subject: [PATCH 1/2] Update show_mpls.py --- src/genie/libs/parser/iosxe/show_mpls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/genie/libs/parser/iosxe/show_mpls.py b/src/genie/libs/parser/iosxe/show_mpls.py index e8fd00443..598bb87bb 100644 --- a/src/genie/libs/parser/iosxe/show_mpls.py +++ b/src/genie/libs/parser/iosxe/show_mpls.py @@ -2403,9 +2403,10 @@ def cli(self, vc_id="", output=None): # Local interface: VFI PE1-VPLS-A up # Local interface: Fa2/1/1.2 up, line protocol up, Eth VLAN 2 up + # Local interface: Gi0/0/22 up, line protocol up, Ethernet:1 up p1 = re.compile(r'^Local +interface: +(?P[\w\d\/\.\s\-]+)' ' +(?P\w+)(, line +protocol +(?P\w+),' - ' Eth +VLAN +(?P\d+) +(?P\w+))?$') + ' (?:Eth +VLAN +|Ethernet:)(?P\d+) +(?P\w+))?$') # Local interface: Se0/1/0:0 up, line protocol up, HDLC up p1_1 = re.compile(r'^Local +interface: +(?P[\w\W]+) +(?P\w+), +line +protocol +(?P\w+), +(?P\w+) +(?P\w+)$') From 35767e073a656c40eddd1e1f7e5165473b2650f4 Mon Sep 17 00:00:00 2001 From: Zachary Puls Date: Tue, 17 Sep 2024 09:24:26 -0500 Subject: [PATCH 2/2] Create changelog_show_mpls_l2transport_detail_iosxe_20240917092402.rst Add changelog --- ...og_show_mpls_l2transport_detail_iosxe_20240917092402.rst | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changelog/undistributed/changelog_show_mpls_l2transport_detail_iosxe_20240917092402.rst diff --git a/changelog/undistributed/changelog_show_mpls_l2transport_detail_iosxe_20240917092402.rst b/changelog/undistributed/changelog_show_mpls_l2transport_detail_iosxe_20240917092402.rst new file mode 100644 index 000000000..54072f0fe --- /dev/null +++ b/changelog/undistributed/changelog_show_mpls_l2transport_detail_iosxe_20240917092402.rst @@ -0,0 +1,6 @@ +-------------------------------------------------------------------------------- + Fix +-------------------------------------------------------------------------------- +* IOSXE + * Modified ShowMplsL2TransportDetail: + * Update 'show mpls l2transport vc detail' RegEx pattern p1 to include optional "Ethernet:", to match device output "Local interface: Gi0/0/2 up, line protocol up, Ethernet:29 up"