From 69edda841cccaf5e8c094693c80d316e2d68edd7 Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Sun, 29 Mar 2015 18:14:11 +0200 Subject: Changes for TG15. --- bootstrap/make-dhcpd.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bootstrap/make-dhcpd.pl') diff --git a/bootstrap/make-dhcpd.pl b/bootstrap/make-dhcpd.pl index ea7bed6..317317d 100755 --- a/bootstrap/make-dhcpd.pl +++ b/bootstrap/make-dhcpd.pl @@ -135,14 +135,14 @@ 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; + vendor-option-space WLC; + option WLC.controller-address "$nms::config::wlc1"; } EOF close WLCFILE; -- cgit v1.2.3 From 1060ba6a009570ca43862edaca64a1ecc87325bf Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Mon, 30 Mar 2015 04:33:17 +0200 Subject: WLC DHCP option. --- bootstrap/make-dhcpd.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bootstrap/make-dhcpd.pl') diff --git a/bootstrap/make-dhcpd.pl b/bootstrap/make-dhcpd.pl index 317317d..3dbefbd 100755 --- a/bootstrap/make-dhcpd.pl +++ b/bootstrap/make-dhcpd.pl @@ -140,9 +140,11 @@ 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 WLC; - option WLC.controller-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; -- cgit v1.2.3