Skip to content

Commit

Permalink
cisco_nxos_show_interface_status: Fixes issue networktocode#331
Browse files Browse the repository at this point in the history
 * added new test files
 * modified template
  • Loading branch information
JCapretta committed Jan 14, 2019
1 parent 35b003a commit 63be845
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cisco_nxos_show_interface_status.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Value NAME (.*?)
Value STATUS (\S+)
Value VLAN (\d+|routed|trunk)
Value DUPLEX (\S+)
Value SPEED (\d+|auto)
Value SPEED (\d+G?|auto)
Value TYPE (.+?)

Start
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
parsed_sample:

- port: "mgmt0"
name: "--"
status: "connected"
vlan: "routed"
duplex: "full"
speed: "1000"
type: "--"

- port: "Eth1/1"
name: "interface1"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR-S"

- port: "Eth1/2"
name: "interface2"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR-S"

- port: "Eth1/3"
name: "interface3"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR"

- port: "Eth1/4"
name: "interface4"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR"

- port: "Eth1/5"
name: "interface5"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR-S"

- port: "Eth1/6"
name: "interface6"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR-S"

- port: Eth1/7
name: "interface7"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR-S"

- port: "Eth1/8"
name: "interface8"
status: "connected"
vlan: "trunk"
duplex: "full"
speed: "10G"
type: "10Gbase-SR-S"

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

--------------------------------------------------------------------------------
Port Name Status Vlan Duplex Speed Type
--------------------------------------------------------------------------------
mgmt0 -- connected routed full 1000 --
Eth1/1 interface1 connected trunk full 10G 10Gbase-SR-S
Eth1/2 interface2 connected trunk full 10G 10Gbase-SR-S
Eth1/3 interface3 connected trunk full 10G 10Gbase-SR
Eth1/4 interface4 connected trunk full 10G 10Gbase-SR
Eth1/5 interface5 connected trunk full 10G 10Gbase-SR-S
Eth1/6 interface6 connected trunk full 10G 10Gbase-SR-S
Eth1/7 interface7 connected trunk full 10G 10Gbase-SR-S
Eth1/8 interface8 connected trunk full 10G 10Gbase-SR-S

0 comments on commit 63be845

Please sign in to comment.