aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/make-dhcpd.pl
diff options
context:
space:
mode:
authorArne Sund <arnels@stortinget.samfundet.no>2015-03-30 21:25:04 +0200
committerArne Sund <arnels@stortinget.samfundet.no>2015-03-30 21:25:04 +0200
commit98820e626686334dc24d29454bf0a9ca2965015d (patch)
tree77ceea81c29a9ba4c86a149fcb281a08b840ef83 /bootstrap/make-dhcpd.pl
parent9007d35be7bc922f9d2f858bd40e5b96529cc943 (diff)
parent0713e9c8627abb20a701c16b74ef5f29d2231624 (diff)
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'bootstrap/make-dhcpd.pl')
-rwxr-xr-xbootstrap/make-dhcpd.pl14
1 files changed, 8 insertions, 6 deletions
diff --git a/bootstrap/make-dhcpd.pl b/bootstrap/make-dhcpd.pl
index ea7bed6..3dbefbd 100755
--- a/bootstrap/make-dhcpd.pl
+++ b/bootstrap/make-dhcpd.pl
@@ -135,14 +135,16 @@ if ( not -f $dhcpd_wlc_conf )
open WLCFILE, ">" . $dhcpd_wlc_conf or die ( $! . " " . $dhcpd_wlc_conf);
print WLCFILE <<"EOF";
-option space AP;
-option AP.server-address code 241 = array of ip-address;
+option space WLC;
+option WLC.controller-address code 43 = text;
set vendor-string = option vendor-class-identifier;
class "access-points" {
- match if substring (option vendor-class-identifier, 0, 8) = "Access Point";
- vendor-option-space AP;
- option AP.server-address $nms::config::wlc1;
+ # Number of characters has to match the substring
+ # I.e if "Access Point", you have to use (0, 12)
+ match if substring (option vendor-class-identifier, 0, 12) = "Access Point";
+ vendor-option-space WLC;
+ option WLC.controller-address "$nms::config::wlc1";
}
EOF
close WLCFILE;
@@ -159,7 +161,7 @@ option space CiscoVOIP;
option CiscoVOIP.cm-tftp-server code 150 = array of ip-address;
class "cisco-voip-lan" {
- match if substring (option vendor-class-identifier, 0, 28) = "Cisco Systems, Inc. IP Phone";
+ match if substring (option vendor-class-identifier, 0, 28) = "Cisco Systems, Inc. IP Phone";
vendor-option-space CiscoVOIP;
log( info, concat( "LOLOPHONE: " , option vendor-class-identifier ));
option CiscoVOIP.cm-tftp-server $nms::config::voip1;