Skip to content

Commit

Permalink
enhancement: cisco_nxos_show_interfaces_switchport: Added access_vlan…
Browse files Browse the repository at this point in the history
…_name and native_vlan_name
  • Loading branch information
daanvdsanden committed Mar 6, 2020
1 parent bdbaf7e commit 80f6a29
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/cisco_nxos_show_interfaces_switchport.textfsm
Expand Up @@ -3,7 +3,9 @@ Value SWITCHPORT (.+)
Value SWITCHPORT_MONITOR (.+)
Value MODE (.+)
Value ACCESS_VLAN (\d+)
Value ACCESS_VLAN_NAME (.+)
Value NATIVE_VLAN (\d+)
Value NATIVE_VLAN_NAME (.+)
Value TRUNKING_VLANS (\S+)
Value VOICE_VLAN (\S+)

Expand All @@ -13,7 +15,9 @@ Start
^\s*Switchport:\s+${SWITCHPORT}
^\s*Switchport\s+Monitor:\s+${SWITCHPORT_MONITOR}
^\s*Operational\s+Mode:\s+${MODE}
^\s*Access\s+Mode\s+VLAN:\s+${ACCESS_VLAN}\s+\(${ACCESS_VLAN_NAME}\)
^\s*Access\s+Mode\s+VLAN:\s+${ACCESS_VLAN}
^\s*Trunking\s+Native\s+Mode\s+VLAN:\s+${NATIVE_VLAN}\s+\(${NATIVE_VLAN_NAME}\)
^\s*Trunking\s+Native\s+Mode\s+VLAN:\s+${NATIVE_VLAN}
^\s*Trunking\s+VLANs\s+Allowed:\s+${TRUNKING_VLANS}
^\s*Voice\s+VLAN:\s+${VOICE_VLAN}
Expand Down
Expand Up @@ -5,22 +5,28 @@ parsed_sample:
switchport_monitor: "Not enabled"
mode: "access"
access_vlan: "3"
access_vlan_name: "Vlan not created"
native_vlan: "1"
native_vlan_name: "default"
trunking_vlans: "1-4094"
voice_vlan: "none"
- interface: "Ethernet1/2"
switchport: "Enabled"
switchport_monitor: "Not enabled"
mode: "trunk"
access_vlan: "1"
access_vlan_name: "default"
native_vlan: "5"
native_vlan_name: "Vlan not created"
trunking_vlans: "1-4094"
voice_vlan: "none"
- interface: "Ethernet1/3"
switchport: "Enabled"
switchport_monitor: "Not enabled"
mode: "trunk"
access_vlan: "1"
access_vlan_name: "default"
native_vlan: "1"
native_vlan_name: "default"
trunking_vlans: "1-4094"
voice_vlan: "none"
Expand Up @@ -5,22 +5,28 @@ parsed_sample:
switchport_monitor: "Not enabled"
mode: "access"
access_vlan: "3"
access_vlan_name: "Vlan not created"
native_vlan: "1"
native_vlan_name: "default"
trunking_vlans: "1-4094"
voice_vlan: "none"
- interface: "Ethernet1/2"
switchport: "Enabled"
switchport_monitor: "Not enabled"
mode: "trunk"
access_vlan: "1"
access_vlan_name: "default"
native_vlan: "5"
native_vlan_name: "Vlan not created"
trunking_vlans: "1-4094"
voice_vlan: "none"
- interface: "Ethernet1/3"
switchport: "Enabled"
switchport_monitor: "Not enabled"
mode: "trunk"
access_vlan: "1"
access_vlan_name: "default"
native_vlan: "1"
native_vlan_name: "default"
trunking_vlans: "1-4094"
voice_vlan: "none"

0 comments on commit 80f6a29

Please sign in to comment.