Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Value PORT (\S+)
Value TYPE (\S+)
Value LINK_STATUS (\S+)
Value ADMIN_STATUS (\S+)
Value SPEED_STATUS (\S+)
Value SPEED_CONFIG (\S+)
Value FLOW_CONTROL_STATUS (\S+)
Value FLOW_CONTROL_CONFIG (\S+)
Value EEE_STATUS (\S+)
Value EEE_CONFIG (\S+)
Value POE_POWER (\S+)
Value LINK_STATE_INFO (.+?)
Value DESCRIPTION (.+)

Start
^\s*$$
^\s+Link\s+Admin\s+Speed\s+Flow-Control\s+EEE\s+PoE\s+Power -> EEETemplate
^\s+Link\s+Admin
^Port\s+Type
^---+
^${PORT}\s+${TYPE}\s+${LINK_STATUS}\s+${ADMIN_STATUS}\s+${SPEED_STATUS}\s+${SPEED_CONFIG}\s+${FLOW_CONTROL_STATUS}\s+${FLOW_CONTROL_CONFIG}\s+${POE_POWER}\s+${LINK_STATE_INFO}\s{2,}${DESCRIPTION}\s*$$ -> Record
^. -> Error "LINE NOT FOUND"

EEETemplate
^Port\s+Type
^---+
^${PORT}\s+${TYPE}\s+${LINK_STATUS}\s+${ADMIN_STATUS}\s+${SPEED_STATUS}\s+${SPEED_CONFIG}\s+${FLOW_CONTROL_STATUS}\s+${FLOW_CONTROL_CONFIG}\s+${EEE_STATUS}\s+${EEE_CONFIG}\s+${POE_POWER}\s+${LINK_STATE_INFO}\s{2,}${DESCRIPTION}\s*$$ -> Record
^. -> Error "LINE NOT FOUND"
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ aruba_aoscx_show_aaa_authentication_port-access_interface_all_client-status.text
aruba_aoscx_show_lldp_neighbors-info_detail.textfsm, .*, aruba_aoscx, sh[[ow]] ll[[dp]] nei[[ghbor]]s?[[-info]] d[[etail]]
aruba_aoscx_show_bgp_all-vrfs_all_summary.textfsm, .*, aruba_aoscx, sh[[ow]] bgp all-[[vrfs]] a[[ll]] s[[ummary]]
aruba_aoscx_show_interface_dom_detail.textfsm , .*, aruba_aoscx, sh[[ow]] int[[erface]] dom d[[etail]]
aruba_aoscx_show_interface_physical.textfsm, .*, aruba_aoscx, sh[[ow]] int[[erface]] p[[hysical]]
aruba_aoscx_show_ip_route_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ip r[[oute]] a[[ll-vrfs]]
aruba_aoscx_show_mac-address-table.textfsm, .*, aruba_aoscx, sh[[ow]] ma[[c-address-table]]
aruba_aoscx_show_ntp_associations.textfsm, .*, aruba_aoscx, sh[[ow]] ntp as[[sociations]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----------------------------------------------------------------------------------------------------------------------------------------
Link Admin Speed Flow-Control PoE Power Port
Port Type Status Config Status | Config Status | Config (Watts) State Information Description
-----------------------------------------------------------------------------------------------------------------------------------------
1/1/1 10G-LR up up 10G n/a -- off -- 10G Switch_name
1/1/26 10G-LR up up 10G n/a -- off -- 10G Switch_name...
1/1/30 10G-LR down up -- n/a -- off -- Waiting for link, 10G Space Name
1/1/31 10G-DAC3 up up 10G n/a -- off -- 10G Switch_name
1/1/34 -- down up -- -- -- off -- No XCVR installed, 1G/10G/25G Space Name2
1/1/43 -- down down -- -- -- off -- No XCVR installed, 1G/10G/25G --
1/1/44 10G-LR up up 10G n/a -- off -- 10G Switch_name...
1/1/46 10G-LR up up 10G n/a -- off -- 10G KeepAlive-Link
1/1/47 10G-LR up up 10G n/a -- off -- 10G ISL-LINK-01
1/1/48 10G-LR up up 10G n/a -- off -- 10G ISL-LINK-02
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
---
parsed_sample:
- admin_status: "up"
description: "Switch_name"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/1"
speed_config: "n/a"
speed_status: "10G"
type: "10G-LR"
- admin_status: "up"
description: "Switch_name..."
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/26"
speed_config: "n/a"
speed_status: "10G"
type: "10G-LR"
- admin_status: "up"
description: "Space Name"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "Waiting for link, 10G"
link_status: "down"
poe_power: "--"
port: "1/1/30"
speed_config: "n/a"
speed_status: "--"
type: "10G-LR"
- admin_status: "up"
description: "Switch_name"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/31"
speed_config: "n/a"
speed_status: "10G"
type: "10G-DAC3"
- admin_status: "up"
description: "Space Name2"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "No XCVR installed, 1G/10G/25G"
link_status: "down"
poe_power: "--"
port: "1/1/34"
speed_config: "--"
speed_status: "--"
type: "--"
- admin_status: "down"
description: "--"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "No XCVR installed, 1G/10G/25G"
link_status: "down"
poe_power: "--"
port: "1/1/43"
speed_config: "--"
speed_status: "--"
type: "--"
- admin_status: "up"
description: "Switch_name..."
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/44"
speed_config: "n/a"
speed_status: "10G"
type: "10G-LR"
- admin_status: "up"
description: "KeepAlive-Link"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/46"
speed_config: "n/a"
speed_status: "10G"
type: "10G-LR"
- admin_status: "up"
description: "ISL-LINK-01"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/47"
speed_config: "n/a"
speed_status: "10G"
type: "10G-LR"
- admin_status: "up"
description: "ISL-LINK-02"
eee_config: ""
eee_status: ""
flow_control_config: "off"
flow_control_status: "--"
link_state_info: "10G"
link_status: "up"
poe_power: "--"
port: "1/1/48"
speed_config: "n/a"
speed_status: "10G"
type: "10G-LR"
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Link Admin Speed Flow-Control PoE Power Port
Port Type Status Config Status | Config Status | Config (Watts) State Information Description
-----------------------------------------------------------------------------------------------------------------------------------------------------------
1/3/1 25G-LR up up 25G n/a -- off -- 25G ISL-LINK-01
1/3/2 1G-LX up up 1G 1G-FDx -- off -- 1G-FDx Switch_name
1/3/17 1G-LX down up -- 1G-FDx -- off -- Waiting for link, 1G-FDx Space Name
1/3/21 1G-LX blocked up 1G 1G-FDx -- off -- 1G-FDx Switch_name
1/3/25 1G-LX down up -- 1G-FDx -- off -- Waiting for link, 1G-FDx --
1/4/1 25G-LR up up 25G n/a -- off -- 25G ISL-LINK-02
1/4/2 1G-LX up up 1G 1G-FDx -- off -- 1G-FDx Switch_name
1/4/15 1G-BT blocked up 1G 1G-FDx -- off -- 1G-FDx --
1/4/19 1G-LX down up -- 1G-FDx -- off -- Waiting for link, 1G-FDx --
1/4/23 1G-BT up up 1G 1G-FDx -- off -- 1G-FDx --
1/4/24 1G-BT down up -- 1G-FDx -- off -- Waiting for link, 1G-FDx --
1/4/35 1G-LX down up -- 1G-FDx -- off -- Administratively down Switch_name
1/4/41 -- down up -- 1G-FDx -- off -- No XCVR installed, 100M/1G/10G/25G --
1/4/48 1G-BT blocked up 1G 1G-FDx -- off -- 1G-FDx AR813-GC1-FW-DC000...
1/5/1 10G-SR down up -- n/a -- off -- Waiting for link, 10G --
1/5/6 10G-LR up up 10G n/a -- off -- 10G Switch_name
1/5/8 -- down up -- -- -- off -- No XCVR installed, 100M/1G/10G/25G/50G --
1/5/13 10G-LR down up -- n/a -- off -- Administratively down Switch_name
1/5/22 1G-LX up up 1G auto -- off -- 1G Space Name2
1/5/23 1G-SX up up 1G auto -- off -- 1G Switch_name
1/5/24 25G-LR up up 25G n/a -- off -- 25G KeepAlive-Link
1/5/47 1G-BT up up 1G auto -- off -- 100M/1G Switch_name
1/5/48 -- down up -- -- -- off -- No XCVR installed, 100M/1G/10G/25G/50G --


Loading
Loading