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 status' #1814

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Expand Up @@ -4,7 +4,7 @@ Value ADDRESS (.*)
Value NAME (.*)
Value PORT_ADMIN (.*)
Value MDIX_MODE (.*)
Value NEGOTIATION (Auto)
Value NEGOTIATION (.*)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Value NEGOTIATION (.*)
Value NEGOTIATION (.*?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Value SPEED (\d+)
Value DUPLEX (\S+)
Value CAPABILITIES (.*)
Expand All @@ -23,6 +23,7 @@ Value PORT_SECURITY_ACTION (.*)
Value MEDIA_TYPE (.*)
Value GIGA_PHY_MODE (.*)
Value LINK_STATUS (.*)
Value LINK_DOWN_REASON (.*)
Value OPERATION_STATUS (.*)
Value PORT_UPTIME (.*)
Value FLOW_CONTROL_TYPE (.*)
Expand Down Expand Up @@ -68,6 +69,7 @@ Configuration

CurrentStatus
^\s*Link\s+Status:\s*${LINK_STATUS}\s*$$
^\s*Link\s+Down\s+Reason:\s*${LINK_DOWN_REASON}\s*$$
^\s*Port\s+Operation\s+Status:\s*${OPERATION_STATUS}\s*$$
^\s*Operation\s+Speed-duplex:\s*${SPEED}${DUPLEX}\s*$$
^\s*Port\s+Uptime:\s*${PORT_UPTIME}\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Information of Eth 1/1
Name: PC1
Port Admin: Up
MDIX mode: Auto
Speed-duplex: Auto
Speed-duplex: 100full
Capabilities: 10half, 10full, 100half, 100full
Broadcast Storm: Enabled
Broadcast Storm Limit: 64 Kbits/second
Expand All @@ -24,6 +24,7 @@ Information of Eth 1/1
Giga PHY mode: Auto preferred master
Current Status:
Link Status: Down
Link Down Reason: Port Admin
Operation Speed-duplex: 100full
Flow Control Type: None

Expand Down
Loading
Loading