[Kea-users] Client Classification question
Satish Patel
satish.txt at gmail.com
Sun Jun 3 01:24:56 UTC 2018
Folks,
My requirement is to classify client based on their hostname and
assign specific range of IP to those servers, example my hostname is
web01 and db01 and i want web01 get specific range of IP address and
db01 get specific range. I am trying to create following filter but
somehow its not working or i am doing something wrong, If i am wrong
then what is the right identifier i should use to parse hostname and
create filter
"client-classes": [
{
"name": "web",
"test": "substr(client-fqdn.name, 0, 3)) == 'web'"
}
],
Getting Error
INFO/keactrl: Starting /usr/local/sbin/kea-dhcp4 -c
/usr/local/etc/kea/kea-dhcp4.conf
2018-06-02 21:09:07.294 ERROR [kea-dhcp4.dhcp4/13875] DHCP4_INIT_FAIL
failed to initialize Kea server: configuration error using file
'/usr/local/etc/kea/kea-dhcp4.conf': expression:
[substr(client-fqdn.name, 0, 3)) == 'web'] error: <string>:1.1:
Invalid character: s at (/usr/local/etc/kea/kea-dhcp4.conf:235:14)
More information about the Kea-users
mailing list