Re: [Kea-users] Support for multiple flex options parameters?

2021-01-25 Thread Søren Andersen
bin')),''))", "code": 67 }, I agree with you.. The syntax is a bit hard to read. From: Francis Dupont Sent: 22 January 2021 11:53 To: Søren Andersen Cc: Francis Dupont ; kea-users@lists.isc.org Subject: Re: [Kea-users] Support for multip

Re: [Kea-users] Support for multiple flex options parameters?

2021-01-22 Thread Francis Dupont
S?ren Andersen writes: > Also for the same dhcp-option like this? > > options: > - code: 67 > add: "ifelse(member('cm'),concat('/docsis/', hexstring(pkt4.mac, '')),'' = > )" > - code: 67 > add: "ifelse(member('voip'),concat('/', concat(hexstring(pkt4.mac, ''), '= > .bin')),'')" => I do not thi

Re: [Kea-users] Support for multiple flex options parameters?

2021-01-21 Thread Søren Andersen
tring(pkt4.mac, ''), '.bin')),'')" From: Francis Dupont Sent: 21 January 2021 14:42 To: Søren Andersen Cc: kea-users@lists.isc.org Subject: Re: [Kea-users] Support for multiple flex options par

Re: [Kea-users] Support for multiple flex options parameters?

2021-01-21 Thread Francis Dupont
Yes multiple actions are supported by the flex option hook. Thanks Francis Dupont ___ ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit ht

[Kea-users] Support for multiple flex options parameters?

2021-01-20 Thread Søren Andersen
Would it be possible to add support for multiple parameters? Like this: { "library": "/usr/lib64/kea/hooks/libdhcp_flex_option.so", "parameters": { "options": [ { "add": "ifelse(member('cm'),concat('/docsis/', hexstring(pkt4.mac, '')),'' )",