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 0000000000..54072f0fef --- /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" diff --git a/src/genie/libs/parser/iosxe/show_mpls.py b/src/genie/libs/parser/iosxe/show_mpls.py index e8fd00443a..598bb87bb8 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+)$')