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: Cisco WLC show mobility anchor #847

Merged
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/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: ""