Skip to content
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
--------------------------------------------------------------------------------
* 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"
3 changes: 2 additions & 1 deletion src/genie/libs/parser/iosxe/show_mpls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<interface>[\w\d\/\.\s\-]+)'
' +(?P<state>\w+)(, line +protocol +(?P<line_protocol_status>\w+),'
' Eth +VLAN +(?P<number>\d+) +(?P<status>\w+))?$')
' (?:Eth +VLAN +|Ethernet:)(?P<number>\d+) +(?P<status>\w+))?$')

# Local interface: Se0/1/0:0 up, line protocol up, HDLC up
p1_1 = re.compile(r'^Local +interface: +(?P<interface>[\w\W]+) +(?P<state>\w+), +line +protocol +(?P<line_protocol_status>\w+), +(?P<protocol>\w+) +(?P<status>\w+)$')
Expand Down