execute statement in match clause

Yves-Alexis Perez corsac at debian.org
Wed Jul 2 14:38:19 UTC 2008


Hi,

following the failover configuration, I'd like to execute an external
script in a match if clause, so I can check stuff on the client before
adding it in a class (and only accept client in this class).

The problem is (using dhcpd 3.1.1), I cant write:

class "example" {
  match if execute("/usr/bin/true");
}

After the match if, it expects only a boolean expression, where execute
is an action expression. Is there a way to check the result of an
external command in a boolean expression?

Cheers, and thanks,
-- 
Yves-Alexis


More information about the dhcp-users mailing list