Skip to content
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

Fix template for Edgecore's command 'show interfaces brief' #1815

Merged
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
@@ -1,12 +1,12 @@
Value INTERFACE (\S+\s+\d+\s*/\s*\d+)
Value NAME (.*?)
Value STATUS (\S+)
Value STATUS (Up|Down|Disabled)
Value PVID (\d+)
Value PRIORITY (\d+)
Value NEGOTIATION (Auto)
Value SPEED (\d+)
Value DUPLEX (\S+)
Value TYPE (\S+)
Value DUPLEX (half|full)
Value TYPE (.*?)
Value TRUNK (\S+)

Start
Expand All @@ -16,6 +16,6 @@ Start

IfacesTable
^(?:\s*-+)+\s*$$
^\s*${INTERFACE}(?:\s+${NAME})?\s+${STATUS}\s+${PVID}\s+${PRIORITY}\s+(${NEGOTIATION}(\-)?)?(${SPEED})?(${DUPLEX})?\s+${TYPE}\s+${TRUNK}\s*$$ -> Record
^\s*${INTERFACE}(?:\s+${NAME})?\s+${STATUS}\s+${PVID}\s+${PRIORITY}\s+(?:${NEGOTIATION})?-?(?:${SPEED}${DUPLEX})?\s+${TYPE}\s+${TRUNK}\s*$$ -> Record
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Eth 1/ 1 Mikrotik-11.22.33. Down 1 0 Auto 100TX None
Eth 1/ 2 vl10_toTESTS-PC Down 5 0 Auto 100TX None
Eth 1/ 3 FortiGateLOL-vl10 Up 730 0 Auto-100full 100TX None
Eth 1/ 4 Down 3010 0 Auto 100TX None
Eth 1/ 5 Down 884 0 Auto 100TX None
Eth 1/ 5 Down 884 0 100full 100TX None
Eth 1/ 6 Down 884 0 Auto 100TX None
Eth 1/ 7 Phone_Lollink_RNCB Up 222 0 Auto-100full 100TX None
Eth 1/ 8 Up 222 0 Auto-100full 100TX None
Eth 1/ 9 Up 1 0 Auto-1000full 1000T None
Eth 1/10 Up 1 0 Auto-1000full 1000T None
Eth 1/10 Uplink Up 1 0 Auto-1000full 1000Base SFP None
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ parsed_sample:
name: ""
priority: "0"
pvid: "884"
negotiation: "Auto"
speed: ""
duplex: ""
negotiation: ""
speed: "100"
duplex: "full"
status: "Down"
trunk: "None"
type: "100TX"
Expand Down Expand Up @@ -91,12 +91,12 @@ parsed_sample:
trunk: "None"
type: "1000T"
- interface: "Eth 1/10"
name: ""
name: "Uplink"
priority: "0"
pvid: "1"
negotiation: "Auto"
speed: "1000"
duplex: "full"
status: "Up"
trunk: "None"
type: "1000T"
type: "1000Base SFP"
Loading