-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: cisco_wlc_show_mobility_anchor (#847)
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/cisco_wlc_ssh/show_mobility_anchor/cisco_wlc_ssh_show_mobility_anchor.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
22 changes: 22 additions & 0 deletions
22
tests/cisco_wlc_ssh/show_mobility_anchor/cisco_wlc_ssh_show_mobility_anchor.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "" |