Skip to content

Commit

Permalink
FEATURE: cisco-ap-flexconnect: Add type for C9000 managed via FlexCon…
Browse files Browse the repository at this point in the history
…nect
  • Loading branch information
julthomas committed Sep 30, 2024
1 parent cfd723f commit 06b9cde
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/perl/zrancid_cisco_ap_flexconnect.pm
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;
15 changes: 15 additions & 0 deletions share/z-cisco-ap-flexconnect.type
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

0 comments on commit 06b9cde

Please sign in to comment.