Support for supersede together with dhcp-server-identifier
We need to configure dhcp-server-identifier using the supersede hook but the server does not send an ACK. Instead it dropped the DHCP request complaining that "it contains a foreign server identifier". Here is our configuration:
[...]
"client-classes": [
{
"name": "Windows",
"user-context": {},
},
{
"name": "Desktop",
"user-context": {},
},
[...]
"reservations": [
{
"hw-address": "aa:aa:aa:aa:aa:01",
"ip-address": "111.111.111.111",
"hostname": "client1",
"client-classes": [
"Desktop"
]
},
{
"hw-address": "aa:aa:aa:aa:aa:02",
"ip-address": "111.111.111.222",
"hostname": "client2",
"client-classes": [
"Windows"
]
},
[...]
"hooks-libraries": [
{
"library": "/usr/local/lib/kea/hooks/libdhcp_bootp.so",
"parameters": {}
},
{
"library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
"parameters": {}
},
{
"library": "/usr/local/lib/kea/hooks/libdhcp_flex_option.so",
"parameters": {
"options": [
{
"code": 54,
"supersede": "ifelse(substring(option[vendor-class-identifier].text, 0, 9) == 'PXEClient' and member('Desktop'), 'xx.xx.xx.xx', ifelse(substring(option[vendor-class-identifier].text, 0, 9) == 'PXEClient' and member('Windows'), 'yy.yy.yy.yy', 'zz.zz.zz.zz'))"
}
]
}
}
],
Could this be supported in a coming release ? Knowing that we have 100's of 1000's of clients in each class, we cannot test on their mac address in the class definition because it would generate a HUGE configuration file containing HUGE test expressions, so big that the validation takes hours to complete.