[Kea-users] Clearing known entities from Kea
Darren Ankney
darren.ankney at gmail.com
Wed Jun 19 12:24:46 UTC 2024
Hi,
> My two questions are thus:
>
> How do I clear out known objects? I am hesitant to just delete objects from the DB directly if there is a better interface.
If by objects, you mean leases, then you would can use the lease
commands API to examine and remove leases. See here:
https://kea.readthedocs.io/en/kea-2.4.1/arm/hooks.html#libdhcp-lease-cmds-so-lease-commands-for-easier-lease-management
>
> And to my root issue, how do define a test that would accept anything or wildcards (*) like:
>
> option[vendor-class-identifier].text == '*'
> option[vendor-class-identifier].text == 'Foo*'
You can use "substring" to match a partial string. See here:
https://kea.readthedocs.io/en/kea-2.4.1/arm/classify.html#substring
Thank you,
Darren Ankney
More information about the Kea-users
mailing list