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

New Template - hp_procurve_show_interfaces #796

Merged
merged 5 commits into from
Oct 21, 2020
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
19 changes: 19 additions & 0 deletions templates/hp_procurve_show_interfaces.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Value PORT (\S+)
Value TOTAL_BYTES (\S+)
Value TOTAL_FRAMES (\S+)
Value ERRORS_RX (\S+)
Value DROPS_TX (\S+)
Value FLOW_CTRL (off|on)
Value BCAST_LIMIT (\d+)

Start
^\s+Status.*Counters\s*
^\s*$$
^\s+Flow\s+Bcast\s*
^\s+Port.*Limit\s*
^\s+-+\s+-+\s+-+\s+-+\s+-+\s+-+\s-+\s*$$ -> ShowInterfaces

ShowInterfaces
^\s+${PORT}\s+${TOTAL_BYTES}\s+${TOTAL_FRAMES}\s+${ERRORS_RX}\s+${DROPS_TX}\s+${FLOW_CTRL}\s+${BCAST_LIMIT}\s*$$ -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ hp_procurve_show_lldp_info_remote-device_detail.textfsm, .*, hp_procurve, sh[[ow
hp_procurve_show_lldp_info_remote-device.textfsm, .*, hp_procurve, sh[[ow]] ll[[dp]] i[[nfo]] r[[emote-device]]
hp_procurve_show_tech_buffers.textfsm, .*, hp_procurve, sh[[ow]] tec[[h]] buf[[ffers]]
hp_procurve_show_mac-address.textfsm, .*, hp_procurve, sh[[ow]] mac-a[[ddress]]
hp_procurve_show_interfaces.textfsm, .*, hp_procurve, sh[[ow]] int[[erfaces]]
hp_procurve_show_system.textfsm, .*, hp_procurve, sh[[ow]] syst[[em]]
hp_procurve_show_trunks.textfsm, .*, hp_procurve, sh[[ow]] tr[[unks]]
hp_procurve_show_vlans.textfsm, .*, hp_procurve, sh[[ow]] vl[[ans]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Status and Counters - Port Counters

Flow Bcast
Port Total Bytes Total Frames Errors Rx Drops Tx Ctrl Limit
------------ -------------- -------------- --------- --------- ---- -----
1 98,581 869 0 0 on 0
2 0 0 0 0 off 0
3 0 0 0 0 off 0
4 0 0 67,00 0 off 0
5 0 0 0 0 off 0
6 0 0 0 0 off 0
7 0 0 0 0 off 0
8 0 0 0 0 off 0
9 0 0 0 0 off 0
10 0 0 0 0 on 50
11 0 0 0 0 off 0
12 0 0 0 0 off 0
13 0 0 0 0 off 0
14 0 0 0 0 off 0
15 0 0 0 0 off 0
16 0 0 0 0 off 0
17 0 0 0 0 off 0
18 0 0 0 0 off 0
19 0 0 0 0 off 0
20 0 0 0 0 off 0
21 0 0 0 0 off 0
22 0 0 0 0 off 0
23 0 0 0 0 off 0
24 0 0 0 0 off 0
170 changes: 170 additions & 0 deletions tests/hp_procurve/show_interfaces/hp_procurve_show_interfaces.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
---
parsed_sample:
- port: "1"
total_bytes: "98,581"
total_frames: "869"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "on"
bcast_limit: "0"
- port: "2"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "3"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "4"
total_bytes: "0"
total_frames: "0"
errors_rx: "67,00"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "5"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "6"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "7"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "8"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "9"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "10"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "on"
bcast_limit: "50"
- port: "11"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "12"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "13"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "14"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "15"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "16"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "17"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "18"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "19"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "20"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "21"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "22"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "23"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"
- port: "24"
total_bytes: "0"
total_frames: "0"
errors_rx: "0"
drops_tx: "0"
flow_ctrl: "off"
bcast_limit: "0"