Skip to content

Commit

Permalink
New Template: cisco_wlc_show_mobility_anchor (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbear authored Jan 30, 2021
1 parent 8230cf5 commit 20236ee
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/cisco_wlc_ssh_show_mobility_anchor.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Value WLAN_ID (\d+)
Value IPADDR (\S+)
Value STATUS (\S+)
Value PRIORITY ([1-3])

Start
^\s*WLAN ID\s+IP Address\s+Status\s+Priority\s*$$ -> Mobility_Anchor

Mobility_Anchor
# WLAN Mobility Anchor List
^\s+${WLAN_ID}\s+${IPADDR}\s+${STATUS}\s+${PRIORITY} -> Record
#
# also handling the similar Guest LAN (GLAN) output
^\s+${WLAN_ID}\s+${IPADDR}\s+${STATUS} -> Record
#
^\s*GLAN ID\s+IP Address\s+Status\s*$$
^\s+[-\s]+$$
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ cisco_wlc_ssh_show_rf-profile_summary.textfsm, .*, cisco_wlc_ssh, sh[[ow]] rf-[[
cisco_wlc_ssh_show_ap_config_general.textfsm, .*, cisco_wlc_ssh, sh[[ow]] ap con[[fig]] ge[[neral]]
cisco_wlc_ssh_show_interface_summary.textfsm, .*, cisco_wlc_ssh, sh[[ow]] int[[erface]] s[[ummary]]
cisco_wlc_ssh_show_redundancy_detail.textfsm, .*, cisco_wlc_ssh, sh[[ow]] red[[undancy]] d[[etail]]
cisco_wlc_ssh_show_mobility_anchor.textfsm, .*, cisco_wlc_ssh, sh[[ow]] mo[[bility]] an[[chor]]
cisco_wlc_ssh_show_client_detail.textfsm, .*, cisco_wlc_ssh, sh[[ow]] cl[[ient]] det[[ail]]
cisco_wlc_ssh_show_exclusionlist.textfsm, .*, cisco_wlc_ssh, sh[[ow]] ex[[clusionlist]]
cisco_wlc_ssh_show_ap_image_all.textfsm, .*, cisco_wlc_ssh, sh[[ow]] ap ima[[ge]] a[[ll]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

Mobility Anchor Export List


Priority number, 1=Highest priority and 3=Lowest priority(default).

WLAN ID IP Address Status Priority
------- --------------- ------ --------
12 10.0.0.211 Up 3
12 10.0.0.212 Up 2
13 10.0.0.212 Up 2
13 10.0.0.213 Up 1

GLAN ID IP Address Status
------- --------------- ------
99 192.168.180.1 Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
parsed_sample:
- wlan_id: "12"
ipaddr: "10.0.0.211"
status: "Up"
priority: "3"
- wlan_id: "12"
ipaddr: "10.0.0.212"
status: "Up"
priority: "2"
- wlan_id: "13"
ipaddr: "10.0.0.212"
status: "Up"
priority: "2"
- wlan_id: "13"
ipaddr: "10.0.0.213"
status: "Up"
priority: "1"
- wlan_id: "99"
ipaddr: "192.168.180.1"
status: "Down"
priority: ""

0 comments on commit 20236ee

Please sign in to comment.