-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: cisco-ap-flexconnect: Add type for C9000 managed via FlexCon…
…nect
- Loading branch information
Showing
2 changed files
with
34 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 @@ | ||
package zrancid_cisco_ap_flexconnect; | ||
|
||
sub import { return 0; } | ||
sub init { return 0; } | ||
|
||
$C = '!'; | ||
|
||
$zrancid::options{comment} = $C; | ||
$zrancid::options{config_end_on_prompt} = 1; | ||
$zrancid::options{commands}{'show version'}{prefix} = "${C}Version: "; | ||
$zrancid::options{commands}{'show version'}{skip_until} = 'Cisco AP Software'; | ||
$zrancid::options{commands}{'show version'}{subs} = [ | ||
[ '(?i:(uptime is\s+))[0-9].*', '$1<removed>' ], | ||
]; | ||
$zrancid::options{commands}{'show flexconnect status'}{prefix} = "${C}FlexConnect: "; | ||
$zrancid::options{commands}{'show flexconnect wlan'}{prefix} = "${C}FlexConnect: "; | ||
$zrancid::options{commands}{'show flexconnect wlan vlan'}{prefix} = "${C}FlexConnect: "; | ||
|
||
return 1; |
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,15 @@ | ||
# z-cisco-ap-flexconnect | ||
# | ||
# Works on Cisco AP C9000 managed via FlexConnect controller. | ||
# Note that "show run" only outputs a list of feature/status pairs. | ||
|
||
z-cisco-ap-flexconnect;script;rancid -t z-cisco-ap-flexconnect | ||
z-cisco-ap-flexconnect;login;clogin | ||
z-cisco-ap-flexconnect;module;zrancid | ||
z-cisco-ap-flexconnect;module;zrancid_cisco_ap_flexconnect | ||
z-cisco-ap-flexconnect;inloop;zrancid::inloop | ||
z-cisco-ap-flexconnect;command;zrancid::comment;show version | ||
z-cisco-ap-flexconnect;command;zrancid::comment;show flexconnect status | ||
z-cisco-ap-flexconnect;command;zrancid::comment;show flexconnect wlan | ||
z-cisco-ap-flexconnect;command;zrancid::comment;show flexconnect wlan vlan | ||
z-cisco-ap-flexconnect;command;zrancid::config;show running-config |