forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cisco_nxos_show_interface_status
: Fixes issue networktocode#331
* added new test files * modified template
- Loading branch information
Showing
3 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
tests/cisco_nxos/show_interface_status/cisco_nxos_show_interface_status1.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
13 changes: 13 additions & 0 deletions
13
tests/cisco_nxos/show_interface_status/cisco_nxos_show_interface_status1.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |