Subject: | Static host entries break the parser |
If you have a host entry like this:
host happyhostname {
dynamic;
hardware ethernet 00:01:02:03:04:05;
}
The parser will break because it sees a closing bracket with no opening
lease { statement.
It causes errors like this:
Can't use an undefined value as a HASH reference at
/usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Leases.pm line 126, <$FH>
line 12.
My workaround was to put:
return if (!defined( $_[0] ));
at the beginning of add_lease.
Hope this helps.
Robert