Class is working but spawn is not.
    Leandro 
    ingrogger at gmail.com
       
    Fri Jul 31 21:47:13 UTC 2015
    
    
  
Hi , guys ...
Trying to give an special treatment to a group of clients according to 
vendor id option (now im using circuit-id, then will change).
I would like to classify them so first I declared a class using the 
class statement as follows:
on dhcpd.conf.
class "premium" {
match if option agent.circuit-id = "em3";
}
subnet 192.168.88.128 netmask 255.255.255.128 {
     pool{
     failover peer "failover-partner";
     range 192.168.88.130 192.168.88.249;
     deny members of "premium";
     }
     pool{
     allow members of "premium";
     failover peer "failover-partner";
     range 192.168.88.250 192.168.88.254;
     }
option broadcast-address 192.168.88.255;
option subnet-mask 255.255.255.128;
option routers 192.168.88.129;
}
But ... When i Try with spawn:
class "premium" {
spawn with option agent.circuit-id;
}
       subnet 192.168.88.128 netmask 255.255.255.128 {
                         pool{
                         failover peer "failover-partner";
                         range 192.168.88.130 192.168.88.249;
                         deny members of "premium" "em3"; #### Semicolon 
expected here.
                         }
                         pool{
                         allow members of "premium" "em3";
                         failover peer "failover-partner";
                         range 192.168.88.250 192.168.88.254;
                         }
                 option broadcast-address 192.168.88.255;
                 option subnet-mask 255.255.255.128;
                 option routers 192.168.88.129;
                 }
Then , Daemon refuses to start with "Semicolon expected".
Any ideas?
Thanks
Leandro.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20150731/2c92a34b/attachment.html>
    
    
More information about the dhcp-users
mailing list