-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cisco ios show interfaces switchport (#433)
New template: cisco_ios_show_interfaces_switchport
- Loading branch information
1 parent
86de7a4
commit 61cf56c
Showing
4 changed files
with
204 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Value Required INTERFACE (\S+) | ||
Value SWITCHPORT (.+) | ||
Value SWITCHPORT_MONITOR (.+) | ||
Value SWITCHPORT_NEGOTIATION (.+) | ||
Value MODE (.+) | ||
Value ACCESS_VLAN (\d+) | ||
Value NATIVE_VLAN (\d+) | ||
Value TRUNKING_VLANS (.+) | ||
|
||
Start | ||
^Name: ${INTERFACE} | ||
^\s*Switchport: ${SWITCHPORT} | ||
^\s*Switchport Monitor: ${SWITCHPORT_MONITOR} | ||
^\s*Operational Mode: ${MODE} | ||
^\s*Negotiation of Trunking: ${SWITCHPORT_NEGOTIATION} | ||
^\s*Access Mode VLAN: ${ACCESS_VLAN} | ||
^\s*Trunking Native Mode VLAN: ${NATIVE_VLAN} | ||
^\s*Trunking VLANs Enabled: ${TRUNKING_VLANS} -> Record | ||
^.+$$ | ||
^. -> Error |
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
43 changes: 43 additions & 0 deletions
43
tests/cisco_ios/show_interfaces_switchport/cisco_ios_show_interfaces_switchport.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,43 @@ | ||
--- | ||
parsed_sample: | ||
|
||
- access_vlan: '1' | ||
interface: Gi0/1 | ||
mode: trunk | ||
native_vlan: '1' | ||
switchport: Enabled | ||
switchport_negotiation: 'Off' | ||
switchport_monitor: '' | ||
trunking_vlans: ALL | ||
- access_vlan: '100' | ||
interface: Gi0/2 | ||
mode: static access | ||
native_vlan: '1' | ||
switchport: Enabled | ||
switchport_negotiation: 'On' | ||
switchport_monitor: '' | ||
trunking_vlans: ALL | ||
- access_vlan: '101' | ||
interface: Gi0/3 | ||
mode: static access | ||
native_vlan: '1' | ||
switchport: Enabled | ||
switchport_negotiation: 'On' | ||
switchport_monitor: '' | ||
trunking_vlans: ALL | ||
- access_vlan: '110' | ||
interface: Gi1/0 | ||
mode: static access | ||
native_vlan: '1' | ||
switchport: Enabled | ||
switchport_negotiation: 'On' | ||
switchport_monitor: '' | ||
trunking_vlans: ALL | ||
- access_vlan: '111' | ||
interface: Gi1/1 | ||
mode: static access | ||
native_vlan: '1' | ||
switchport: Enabled | ||
switchport_negotiation: 'On' | ||
switchport_monitor: '' | ||
trunking_vlans: ALL |
140 changes: 140 additions & 0 deletions
140
tests/cisco_ios/show_interfaces_switchport/cisco_ios_show_interfaces_switchport.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,140 @@ | ||
|
||
Name: Gi0/1 | ||
Switchport: Enabled | ||
Administrative Mode: trunk | ||
Operational Mode: trunk | ||
Administrative Trunking Encapsulation: dot1q | ||
Operational Trunking Encapsulation: dot1q | ||
Negotiation of Trunking: Off | ||
Access Mode VLAN: 1 (default) | ||
Trunking Native Mode VLAN: 1 (default) | ||
Administrative Native VLAN tagging: enabled | ||
Voice VLAN: none | ||
Administrative private-vlan host-association: none | ||
Administrative private-vlan mapping: none | ||
Administrative private-vlan trunk native VLAN: none | ||
Administrative private-vlan trunk Native VLAN tagging: enabled | ||
Administrative private-vlan trunk encapsulation: dot1q | ||
Administrative private-vlan trunk normal VLANs: none | ||
Administrative private-vlan trunk associations: none | ||
Administrative private-vlan trunk mappings: none | ||
Operational private-vlan: none | ||
Trunking VLANs Enabled: ALL | ||
Pruning VLANs Enabled: 2-1001 | ||
Capture Mode Disabled | ||
Capture VLANs Allowed: ALL | ||
|
||
Protected: false | ||
Appliance trust: none | ||
|
||
Name: Gi0/2 | ||
Switchport: Enabled | ||
Administrative Mode: dynamic auto | ||
Operational Mode: static access | ||
Administrative Trunking Encapsulation: negotiate | ||
Operational Trunking Encapsulation: native | ||
Negotiation of Trunking: On | ||
Access Mode VLAN: 100 (PLC1) | ||
Trunking Native Mode VLAN: 1 (default) | ||
Administrative Native VLAN tagging: enabled | ||
Voice VLAN: none | ||
Administrative private-vlan host-association: none | ||
Administrative private-vlan mapping: none | ||
Administrative private-vlan trunk native VLAN: none | ||
Administrative private-vlan trunk Native VLAN tagging: enabled | ||
Administrative private-vlan trunk encapsulation: dot1q | ||
Administrative private-vlan trunk normal VLANs: none | ||
Administrative private-vlan trunk associations: none | ||
Administrative private-vlan trunk mappings: none | ||
Operational private-vlan: none | ||
Trunking VLANs Enabled: ALL | ||
Pruning VLANs Enabled: 2-1001 | ||
Capture Mode Disabled | ||
Capture VLANs Allowed: ALL | ||
|
||
Protected: false | ||
Appliance trust: none | ||
|
||
Name: Gi0/3 | ||
Switchport: Enabled | ||
Administrative Mode: dynamic auto | ||
Operational Mode: static access | ||
Administrative Trunking Encapsulation: negotiate | ||
Operational Trunking Encapsulation: native | ||
Negotiation of Trunking: On | ||
Access Mode VLAN: 101 (HMI1) | ||
Trunking Native Mode VLAN: 1 (default) | ||
Administrative Native VLAN tagging: enabled | ||
Voice VLAN: none | ||
Administrative private-vlan host-association: none | ||
Administrative private-vlan mapping: none | ||
Administrative private-vlan trunk native VLAN: none | ||
Administrative private-vlan trunk Native VLAN tagging: enabled | ||
Administrative private-vlan trunk encapsulation: dot1q | ||
Administrative private-vlan trunk normal VLANs: none | ||
Administrative private-vlan trunk associations: none | ||
Administrative private-vlan trunk mappings: none | ||
Operational private-vlan: none | ||
Trunking VLANs Enabled: ALL | ||
Pruning VLANs Enabled: 2-1001 | ||
Capture Mode Disabled | ||
Capture VLANs Allowed: ALL | ||
|
||
Protected: false | ||
Appliance trust: none | ||
|
||
Name: Gi1/0 | ||
Switchport: Enabled | ||
Administrative Mode: dynamic auto | ||
Operational Mode: static access | ||
Administrative Trunking Encapsulation: negotiate | ||
Operational Trunking Encapsulation: native | ||
Negotiation of Trunking: On | ||
Access Mode VLAN: 110 (PLC2) | ||
Trunking Native Mode VLAN: 1 (default) | ||
Administrative Native VLAN tagging: enabled | ||
Voice VLAN: none | ||
Administrative private-vlan host-association: none | ||
Administrative private-vlan mapping: none | ||
Administrative private-vlan trunk native VLAN: none | ||
Administrative private-vlan trunk Native VLAN tagging: enabled | ||
Administrative private-vlan trunk encapsulation: dot1q | ||
Administrative private-vlan trunk normal VLANs: none | ||
Administrative private-vlan trunk associations: none | ||
Administrative private-vlan trunk mappings: none | ||
Operational private-vlan: none | ||
Trunking VLANs Enabled: ALL | ||
Pruning VLANs Enabled: 2-1001 | ||
Capture Mode Disabled | ||
Capture VLANs Allowed: ALL | ||
|
||
Protected: false | ||
Appliance trust: none | ||
|
||
Name: Gi1/1 | ||
Switchport: Enabled | ||
Administrative Mode: dynamic auto | ||
Operational Mode: static access | ||
Administrative Trunking Encapsulation: negotiate | ||
Operational Trunking Encapsulation: native | ||
Negotiation of Trunking: On | ||
Access Mode VLAN: 111 (HMI2) | ||
Trunking Native Mode VLAN: 1 (default) | ||
Administrative Native VLAN tagging: enabled | ||
Voice VLAN: none | ||
Administrative private-vlan host-association: none | ||
Administrative private-vlan mapping: none | ||
Administrative private-vlan trunk native VLAN: none | ||
Administrative private-vlan trunk Native VLAN tagging: enabled | ||
Administrative private-vlan trunk encapsulation: dot1q | ||
Administrative private-vlan trunk normal VLANs: none | ||
Administrative private-vlan trunk associations: none | ||
Administrative private-vlan trunk mappings: none | ||
Operational private-vlan: none | ||
Trunking VLANs Enabled: ALL | ||
Pruning VLANs Enabled: 2-1001 | ||
Capture Mode Disabled | ||
Capture VLANs Allowed: ALL | ||
|
||
Protected: false | ||
Appliance trust: none |