Re: [Kea-users] Example for ifelse in host reservation or class

2021-07-20 Thread Francis Dupont
Veronique Lefebure writes: > Is there a way to use ifelse in a host reservation ? > > We would like something like > > "reservations": [ { "hw-address": "xx:xx:xx:xx:xx:fa", "ip-address": > "yy.yy.yy.121", "hostname": "lab-client", "client-classes": [ " ifelse ( >

Re: [Kea-users] Example for ifelse in host reservation or class

2021-07-20 Thread Peter Davies
Hi Veronique, "client-classes" within a reservation definition can only contain a list of classes: Can you explain what you are trying to achieve here? There may be another way of accomplishing it. Kind Regards Peter >From "Kea Configuration File Syntax (BNF)":

[Kea-users] Example for ifelse in host reservation or class

2021-07-20 Thread Veronique Lefebure
Hi, Is there a way to use ifelse in a host reservation ? We would like something like "reservations": [ { "hw-address": "xx:xx:xx:xx:xx:fa", "ip-address": "yy.yy.yy.121", "hostname": "lab-client", "client-classes": [ " ifelse ( substring(option[vendor-class-identifier].text, 0, 9) ==