aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/make-dhcpd.pl
diff options
context:
space:
mode:
authorJoachim Tingvold <joachim@tingvold.com>2015-03-22 02:53:09 +0100
committerJoachim Tingvold <joachim@tingvold.com>2015-03-22 02:53:09 +0100
commitba68f3723893fc7c2d27da6c255982accde43259 (patch)
tree1a2deaa789ae2103ad18fbbea754e83b7ed1d111 /bootstrap/make-dhcpd.pl
parent243410cc84d24d28a2625c7718acf6cb75e90978 (diff)
Minor cleanups.
Diffstat (limited to 'bootstrap/make-dhcpd.pl')
-rwxr-xr-xbootstrap/make-dhcpd.pl8
1 files changed, 1 insertions, 7 deletions
diff --git a/bootstrap/make-dhcpd.pl b/bootstrap/make-dhcpd.pl
index d5f49cc..04def7b 100755
--- a/bootstrap/make-dhcpd.pl
+++ b/bootstrap/make-dhcpd.pl
@@ -41,12 +41,6 @@ if ( not -f $dhcpd_conf )
print STDERR "Creating file " . $dhcpd_conf . "\n";
open DHCPDFILE, ">" . $dhcpd_conf or die ( $! . " " . $dhcpd_conf);
- my $network = Net::IP->new($v4_net)->ip();
- my $netmask = Net::IP->new($v4_net)->mask();
- (my $first = NetAddr::IP->new($v4_net)->nth(3)) =~ s/\/[0-9]{1,2}//; # we reserve the three first addresses
- (my $last = NetAddr::IP->new($v4_net)->last()) =~ s/\/[0-9]{1,2}//;
- (my $gw = NetAddr::IP->new($v4_net)->first()) =~ s/\/[0-9]{1,2}//;
-
print DHCPDFILE <<"EOF";
# GENERATED BY make-dhcpd.pl
@@ -145,7 +139,7 @@ option space AP;
option AP.server-address code 241 = array of ip-address;
set vendor-string = option vendor-class-identifier;
-class "cisco-aps" {
+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;