8000 Update show_mpls.py by ZacharyPuls · Pull Request #890 · CiscoTestAutomation/genieparser · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update show_mpls.py #890

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
--------------------------------------------------------------------------------
* 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
0