Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding vlan name to access vlan and native vlan on NXOS #612

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions templates/cisco_nxos_show_interfaces_switchport.textfsm
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change
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"