lease limit inside if statemet

Luka dhcp at ml.evriala.net
Wed May 19 08:39:38 UTC 2010


Hi,

why isn't it possible to define lease limit inside the if statement.

class "testclass" {
	if not (option agent.circuit-id = "test") {
		lease limit 3;
	}
	spawn with agent.circuit-id;
	....
}

dhcpd -t output:

/var/dhcpd/etc/dhcpd.master line 144: right brace expected.
                lease 
                 ^
/var/dhcpd/etc/dhcpd.master line 145: expecting a declaration
        }
         ^
/var/dhcpd/etc/dhcpd.master line 146: expecting a declaration
        spawn with option agent.circuit-id;     
                                           ^
/var/dhcpd/etc/dhcpd.conf line 12: /var/dhcpd/etc/dhcpd.master: bad
parse.
include "/var/dhcpd/etc/dhcpd.master"

I've searched the archives and the web before posting, but found no
answers.

Thank you!

Luka





More information about the dhcp-users mailing list