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

Cisco nxos show interfaces switchport #434

Merged
merged 8 commits into from
Jul 25, 2019
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
18 changes: 18 additions & 0 deletions templates/cisco_nxos_show_interfaces_switchport.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Value Required INTERFACE (\S+)
Value SWITCHPORT (.+)
Value SWITCHPORT_MONITOR (.+)
Value MODE (.+)
Value ACCESS_VLAN (\d+)
Value NATIVE_VLAN (\d+)
Value TRUNKING_VLANS (\S+)

Start
^Name: ${INTERFACE}
^\s*Switchport: ${SWITCHPORT}
^\s*Switchport Monitor: ${SWITCHPORT_MONITOR}
^\s*Operational Mode: ${MODE}
^\s*Access Mode VLAN: ${ACCESS_VLAN}
^\s*Trunking Native Mode VLAN: ${NATIVE_VLAN}
^\s*Trunking VLANs Allowed: ${TRUNKING_VLANS} -> Record
^.+$$
^. -> Error
3 changes: 2 additions & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ brocade_netiron_show_span.template, .*, brocade_netiron, sh[[ow]] sp[[anning-tre
brocade_netiron_show_topo.template, .*, brocade_netiron, sh[[ow]] to[[pology-group]]

checkpoint_gaia_show_interfaces_all.template, .*, checkpoint_gaia, show interfaces all
checkpoint_gaia_show_ntp_servers.template, .*, checkpoint_gaia, show ntp servers
checkpoint_gaia_show_ntp_servers.template, .*, checkpoint_gaia, show ntp servers
checkpoint_gaia_show_version_all.template, .*, checkpoint_gaia, show version all
checkpoint_gaia_show_domainname.template, .*, checkpoint_gaia, show domainname
checkpoint_gaia_show_ipv6_route.template, .*, checkpoint_gaia, show ipv6 route
Expand Down Expand Up @@ -188,6 +188,7 @@ cisco_nxos_show_l2rib_internal_permanently-frozen-list.template, .*, cisco_nxos,
cisco_nxos_show_configuration_session_summary.template, .*, cisco_nxos, sh[[ow]] configu[[ration]] s[[ession]] su[[mmary]]
cisco_nxos_show_interface_transceiver_details.template, .*, cisco_nxos, sh[[ow]] int[[erface]] tra[[nsceiver]] de[[tails]]
cisco_nxos_show_environment_temperature.template, .*, cisco_nxos, sh[[ow]] env[[ironment]] t[[emperature]]
cisco_nxos_show_interfaces_switchport.template, .*, cisco_nxos, sh[[ow]] int[[erfaces]] sw[[itchport]]
cisco_nxos_show_ip_dhcp_relay_address.template, .*, cisco_nxos, sh[[ow]] ip dh[[cp]] r[[elay]] a[[ddress]]
cisco_nxos_show_lldp_neighbors_detail.template, .*, cisco_nxos, sh[[ow]] ll[[dp]] nei[[ghbors]] d[[etail]]
cisco_nxos_show_cdp_neighbors_detail.template, .*, cisco_nxos, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
parsed_sample:

- interface: Ethernet1/1
switchport: Enabled
switchport_monitor: Not enabled
mode: access
access_vlan: '3'
native_vlan: '1'
trunking_vlans: '1-4094'
- interface: Ethernet1/2
switchport: Enabled
switchport_monitor: Not enabled
mode: trunk
access_vlan: '1'
native_vlan: '5'
trunking_vlans: '1-4094'
- interface: Ethernet1/3
switchport: Enabled
switchport_monitor: Not enabled
mode: trunk
access_vlan: '1'
native_vlan: '1'
trunking_vlans: '1-4094'
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Name: Ethernet1/1
Switchport: Enabled
Switchport Monitor: Not enabled
Switchport Isolated : Not enabled
Switchport Block Multicast: Not enabled
Switchport Block Unicast: Not enabled
Operational Mode: access
Access Mode VLAN: 3 (Vlan not created)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Allowed: 1-4094
Voice VLAN: none
Extended Trust State : not trusted [COS = 0]
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Name: Ethernet1/2
Switchport: Enabled
Switchport Monitor: Not enabled
Switchport Isolated : Not enabled
Switchport Block Multicast: Not enabled
Switchport Block Unicast: Not enabled
Operational Mode: trunk
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 5 (Vlan not created)
Trunking VLANs Allowed: 1-4094
Voice VLAN: none
Extended Trust State : not trusted [COS = 0]
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Name: Ethernet1/3
Switchport: Enabled
Switchport Monitor: Not enabled
Switchport Isolated : Not enabled
Switchport Block Multicast: Not enabled
Switchport Block Unicast: Not enabled
Operational Mode: trunk
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Allowed: 1-4094
Voice VLAN: none
Extended Trust State : not trusted [COS = 0]
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none