-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ios sh int status private vlan (pvlan) bug (#1948)
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
ntc_templates/templates/cisco_ios_show_interfaces_status.textfsm
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
9 changes: 9 additions & 0 deletions
9
tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status_pvlan.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,9 @@ | ||
|
||
Port Name Status Vlan Duplex Speed Type | ||
Twe1/0/1 Device 1 connected 123 a-full a-1000 10/100/1000BaseTX SFP | ||
Twe1/0/2 Device 2 disabled 456 auto auto 10/100/1000BaseTX SFP | ||
Twe1/0/4 * Device 3 * connected 123,1234 a-full a-1000 10/100/1000BaseTX SFP | ||
Twe1/0/5 Device 4 disabled 2345 auto auto 10/100/1000BaseTX SFP | ||
Twe1/0/17 Device 5 connected pvlan prom full 10G SFP-10GBase-SR | ||
Twe1/0/28 Device 6 notconnect 123 auto auto 10/100/1000BaseTX SFP | ||
Twe2/0/32 monitoring 1 full 10G SFP-10GBase-SR |
58 changes: 58 additions & 0 deletions
58
tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status_pvlan.yml
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,58 @@ | ||
--- | ||
parsed_sample: | ||
- duplex: "a-full" | ||
fc_mode: "" | ||
name: "Device 1" | ||
port: "Twe1/0/1" | ||
speed: "a-1000" | ||
status: "connected" | ||
type: "10/100/1000BaseTX SFP" | ||
vlan_id: "123" | ||
- duplex: "auto" | ||
fc_mode: "" | ||
name: "Device 2" | ||
port: "Twe1/0/2" | ||
speed: "auto" | ||
status: "disabled" | ||
type: "10/100/1000BaseTX SFP" | ||
vlan_id: "456" | ||
- duplex: "a-full" | ||
fc_mode: "" | ||
name: "* Device 3 *" | ||
port: "Twe1/0/4" | ||
speed: "a-1000" | ||
status: "connected" | ||
type: "10/100/1000BaseTX SFP" | ||
vlan_id: "123,1234" | ||
- duplex: "auto" | ||
fc_mode: "" | ||
name: "Device 4" | ||
port: "Twe1/0/5" | ||
speed: "auto" | ||
status: "disabled" | ||
type: "10/100/1000BaseTX SFP" | ||
vlan_id: "2345" | ||
- duplex: "full" | ||
fc_mode: "" | ||
name: "Device 5" | ||
port: "Twe1/0/17" | ||
speed: "10G" | ||
status: "connected" | ||
type: "SFP-10GBase-SR" | ||
vlan_id: "pvlan prom" | ||
- duplex: "auto" | ||
fc_mode: "" | ||
name: "Device 6" | ||
port: "Twe1/0/28" | ||
speed: "auto" | ||
status: "notconnect" | ||
type: "10/100/1000BaseTX SFP" | ||
vlan_id: "123" | ||
- duplex: "full" | ||
fc_mode: "" | ||
name: "" | ||
port: "Twe2/0/32" | ||
speed: "10G" | ||
status: "monitoring" | ||
type: "SFP-10GBase-SR" | ||
vlan_id: "1" |