Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disabled port where not matched
Name starting or ending with word character where not matched
  • Loading branch information
targuan committed Oct 9, 2019
1 parent 8b46dd9 commit 2501ed7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/arista_eos_show_interfaces_status.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Value PORT (\S+)
Value NAME (\w.*\w)
Value STATUS (connected|notconnect|inactive|errdisabled)
Value NAME (\S.*(?<!\s))
Value STATUS (connected|notconnect|inactive|errdisabled|disabled)
Value VLAN (\S+)
Value DUPLEX (\S+)
Value SPEED (\S+)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ parsed_sample:
duplex: "a-full"
speed: "a-10G"
type: "40GBASE-SR"

- port: "Et3/2/4"
name: "- DISABLED routed ("
status: "disabled"
vlan: "routed"
duplex: "a-full"
speed: "a-10G"
type: "40GBASE-SR"

- port: "Et3/2/5"
name: "-"
status: "disabled"
vlan: "routed"
duplex: "a-full"
speed: "a-10G"
type: "40GBASE-SR"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ Et3/1/1 I am a 40G port !! Hi connected trunk a-full a-40G 40GBASE
Et3/1/4 inactive 1 unconf unconf 40GBASE-CR4
Et3/2/1 PORTNAME notconnect trunk a-full a-10G 40GBASE-SR
Et3/2/2 I am a 10G port errdisabled 10 a-full a-10G 40GBASE-SR
Et3/2/4 - DISABLED routed ( disabled routed a-full a-10G 40GBASE-SR
Et3/2/5 - disabled routed a-full a-10G 40GBASE-SR

0 comments on commit 2501ed7

Please sign in to comment.