-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: IOS show int switchport - Add ADMIN_MODE Group (#563)
* Captured Administrative Mode, added support for unassigned Access VLAN * Avoid trailing spaces and updated tests Co-authored-by: jmorello12 <jmorello12@users.noreply.github.com>
- Loading branch information
1 parent
f5a3558
commit c02a4ca
Showing
3 changed files
with
79 additions
and
67 deletions.
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
66 changes: 36 additions & 30 deletions
66
tests/cisco_ios/show_interfaces_switchport/cisco_ios_show_interfaces_switchport.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 |
---|---|---|
@@ -1,56 +1,62 @@ | ||
--- | ||
parsed_sample: | ||
- access_vlan: "1" | ||
interface: "Gi0/1" | ||
mode: "trunk" | ||
native_vlan: "1" | ||
- interface: "Gi0/1" | ||
switchport: "Enabled" | ||
switchport_negotiation: "Off" | ||
switchport_monitor: "" | ||
switchport_negotiation: "Off" | ||
mode: "trunk" | ||
admin_mode: "trunk" | ||
access_vlan: "1" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "100" | ||
interface: "Gi0/2" | ||
mode: "static access" | ||
native_vlan: "1" | ||
- interface: "Gi0/2" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "101" | ||
interface: "Gi0/3" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "100" | ||
native_vlan: "1" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "110" | ||
interface: "Gi1/0" | ||
mode: "static access" | ||
native_vlan: "1" | ||
- interface: "Gi0/3" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "111" | ||
interface: "Gi1/1" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "101" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- interface: "Gi1/0" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "110" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "1" | ||
interface: "Fa0/1" | ||
- interface: "Gi1/1" | ||
switchport: "Enabled" | ||
switchport_monitor: "" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "111" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- interface: "Fa0/1" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "1" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" |
55 changes: 30 additions & 25 deletions
55
.../cisco_ios/show_interfaces_switchport/cisco_ios_show_interfaces_switchport_voice_vlan.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 |
---|---|---|
@@ -1,47 +1,52 @@ | ||
--- | ||
parsed_sample: | ||
- access_vlan: "1" | ||
interface: "Gi0/1" | ||
mode: "trunk" | ||
native_vlan: "1" | ||
- interface: "Gi0/1" | ||
switchport: "Enabled" | ||
switchport_negotiation: "Off" | ||
switchport_monitor: "" | ||
switchport_negotiation: "Off" | ||
mode: "trunk" | ||
admin_mode: "trunk" | ||
access_vlan: "1" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "100" | ||
interface: "Gi0/2" | ||
mode: "static access" | ||
native_vlan: "1" | ||
- interface: "Gi0/2" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "101" | ||
interface: "Gi0/3" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "100" | ||
native_vlan: "1" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "110" | ||
interface: "Gi1/0" | ||
mode: "static access" | ||
native_vlan: "1" | ||
- interface: "Gi0/3" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "101" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- access_vlan: "111" | ||
interface: "Gi1/1" | ||
- interface: "Gi1/0" | ||
switchport: "Enabled" | ||
switchport_monitor: "" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "110" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" | ||
- interface: "Gi1/1" | ||
switchport: "Enabled" | ||
switchport_negotiation: "On" | ||
switchport_monitor: "" | ||
switchport_negotiation: "On" | ||
mode: "static access" | ||
admin_mode: "dynamic auto" | ||
access_vlan: "111" | ||
native_vlan: "1" | ||
voice_vlan: "none" | ||
trunking_vlans: "ALL" |