Skip to content

Commit 55f0471

Browse files
authored
Added new textfsm template to parse show hostname command on aruba wireless controllers. Updated index file and added appopriate test files (#2189)
Signed-off-by: Cain,Marcus <[email protected]>
1 parent 35b95db commit 55f0471

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Value HOSTNAME (\S+)
2+
3+
Start
4+
^Hostname\s+is\s+${HOSTNAME}$$
5+
^\s*$$
6+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ aruba_os_show_ip_interface_brief.textfsm, .*, aruba_os, sh[[ow]] ip in[[terface]
130130
aruba_os_show_ap_radio-database.textfsm, .*, aruba_os, show ap radio-database
131131
aruba_os_show_ap_database_long.textfsm, .*, aruba_os, show ap database long
132132
aruba_os_show_ap_database.textfsm, .*, aruba_os, show ap database
133+
aruba_os_show_hostname.textfsm, .*, aruba_os, sh[[ow]] hostname
133134
aruba_os_show_version.textfsm, .*, aruba_os, sh[[ow]] ver[[sion]]
134135
aruba_os_show_vlan.textfsm, .*, aruba_os, sh[[ow]] vl[[an]]
135136
aruba_os_show_arp.textfsm, .*, aruba_os, sh[[ow]] arp
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Hostname is WLC-AMC72-LAB01
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
parsed_sample:
3+
- hostname: "WLC-AMC72-LAB01"

0 commit comments

Comments
 (0)