Skip to content

Commit

Permalink
New Template: Procurve show int brief (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
adraf82 authored Dec 1, 2020
1 parent dbee8b2 commit b848b09
Show file tree
Hide file tree
Showing 6 changed files with 805 additions and 0 deletions.
30 changes: 30 additions & 0 deletions templates/hp_procurve_show_interfaces_brief.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Value PORT (\S+)
Value TYPE (\S*)
Value INTRUSION_ALERT (Yes|No)
Value ENABLED (Yes|No)
Value STATUS (Up|Down)
Value MODE (\S+)
Value MDI_MODE (MDI\S*|Auto)
Value FLOW_CTRL (on|off)
Value BCAST_LIMIT (\d+)

Start
^\s+Status.*Status\s*
^\s*$$
^\s+\|\s+Intrusion\s+MDI\s+Flow(?:\s+Bcast)?\s*$$
^\s+Port\s+Type\s+\|\s+Alert\s+Enabled\s+Status\s+Mode\s+Mode\s+Ctrl\s*$$ -> showintbrief1
^\s+Port\s+Type\s+\|\s+Alert\s+Enabled\s+Status\s+Mode\s+Mode\s+Ctrl\s+Limit\s*$$ -> showintbrief2
^. -> Error

showintbrief1
^\s+${PORT}\s+${TYPE}\s+\|\s+${INTRUSION_ALERT}\s+${ENABLED}\s+${STATUS}\s+${MODE}\s+(?:${MDI_MODE}\s+)?${FLOW_CTRL}\s*$$ -> Record
^\s*-+(?:\s|-|\+)+$$
^\s*$$
^. -> Error

showintbrief2
^\s+${PORT}\s+${TYPE}\s+\|\s+${INTRUSION_ALERT}\s+${ENABLED}\s+${STATUS}\s+${MODE}\s+(?:${MDI_MODE}\s+)?${FLOW_CTRL}\s+${BCAST_LIMIT}\s*$$ -> Record
^\s*-+(?:\s|-|\+)+$$
^\s*$$
^. -> Error

1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ hp_comware_display_arp.textfsm, .*, hp_comware, di[[splay]] a[[rp]]

hp_procurve_show_lldp_info_remote-device_detail.textfsm, .*, hp_procurve, sh[[ow]] ll[[dp]] i[[nfo]] r[[emote-device]] .+
hp_procurve_show_lldp_info_remote-device.textfsm, .*, hp_procurve, sh[[ow]] ll[[dp]] i[[nfo]] r[[emote-device]]
hp_procurve_show_interfaces_brief.textfsm, .*, hp_procurve, sh[[ow]] int[[erfaces]] b[[rief]]
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]]
Expand Down
57 changes: 57 additions & 0 deletions tests/hp_procurve/show_interfaces_brief/show_interfaces_brief.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Status and Counters - Port Status

| Intrusion MDI Flow
Port Type | Alert Enabled Status Mode Mode Ctrl
----- ---------- + --------- ------- ------ ---------- ---- ----
1 10/100TX | No Yes Up 100FDx MDIX off
2 10/100TX | No Yes Down 10FDx MDI off
3 10/100TX | Yes Yes Down 10FDx MDI off
4 10/100TX | No Yes Down 10FDx MDIX off
5 10/100TX | No No Down 10FDx MDI off
6 10/100TX | No Yes Down 10FDx MDI on
7 10/100TX | No Yes Down 10FDx MDI off
8 10/100TX | No Yes Down 10FDx MDI off
9 10/100TX | No Yes Down 10FDx MDIX off
10 10/100TX | No Yes Down 10FDx MDIX off
11 10/100TX | No Yes Down 10FDx MDI off
12 10/100TX | No Yes Down 10FDx MDI off
13 10/100TX | No Yes Down 10FDx MDIX off
14 10/100TX | No Yes Down 10FDx MDI off
15 10/100TX | No Yes Down 10FDx MDIX off
16 10/100TX | No Yes Down 10FDx MDIX off
17 10/100TX | No Yes Down 10FDx MDI off
18 10/100TX | No Yes Down 10FDx MDI off
19 10/100TX | No Yes Down 10FDx MDI off
20 10/100TX | No Yes Down 10FDx MDI off
21 10/100TX | No Yes Down 10FDx MDIX off
22 10/100TX | No Yes Down 10FDx MDIX off
23 10/100TX | No Yes Down 10FDx MDI off
24 10/100TX | No Yes Down 10FDx MDIX off
25 10/100TX | No Yes Down 10FDx MDI off
26 10/100TX | No Yes Down 10FDx MDI off
27 10/100TX | No Yes Down 10FDx MDI off
28 10/100TX | No Yes Down 10FDx MDIX off
29 10/100TX | No Yes Down 10FDx MDIX off
30 10/100TX | No Yes Down 10FDx MDI off
31 10/100TX | No Yes Down 10FDx MDI off
32 10/100TX | No Yes Down 10FDx MDI off
33 10/100TX | No Yes Down 10FDx MDI off
34 10/100TX | No Yes Down 10FDx MDIX off
35 10/100TX | No Yes Down 10FDx MDIX off
36 10/100TX | No Yes Down 10FDx MDI off
37 10/100TX | No Yes Down 10FDx MDI off
38 10/100TX | No Yes Down 10FDx MDI off
39 10/100TX | No Yes Down 10FDx MDI off
40 10/100TX | No Yes Down 10FDx MDIX off
41 10/100TX | No Yes Down 10FDx MDIX off
42 10/100TX | No Yes Down 10FDx MDI off
43 10/100TX | No Yes Down 10FDx MDIX off
44 10/100TX | No Yes Down 10FDx MDI off
45 10/100TX | No Yes Down 10FDx MDIX off
46 10/100TX | No Yes Down 10FDx MDIX off
47 10/100TX | No Yes Down 10FDx MDI off
48 10/100TX | No Yes Down 10FDx MDIX off
49 100/1000T | No Yes Down 1000FDx MDIX off
50 100/1000T | No Yes Down 1000FDx MDI off
51 | No Yes Down . off
52 | No Yes Down . off
Loading

0 comments on commit b848b09

Please sign in to comment.