[Kea-users] dhcp to kea-dhcp4 json "option-data"

John Gammon john.gammon at forkeddeer.com
Mon Apr 25 12:58:04 UTC 2022


Good morning.

As I have stated before, I am working on a conversion from isc-dhcp to kea-dhcp4.  There is a section of code which is not migrating easily.

I need to convert the following int the json config structure.  How may this be accomplished?

option space CALIXGS;
option CALIXGS.acs-url code 1 = text;
option CALIXGS.spid code 27 = text;

set vendor-string = option vendor-class-identifier;

if ((substring (option vendor-class-identifier, 0, 24) = "GS2026E.ONT.dslforum.org"
        or substring (option vendor-class-identifier, 0, 24) = "GS2020E.ONT.dslforum.org"
        or substring (option vendor-class-identifier, 0, 24) = "GS4227E.ONT.dslforum.org"
        or substring (option vendor-class-identifier, 0, 24) = "GS4220E.ONT.dslforum.org" ))
{
        vendor-option-space CALIXGS;
        option CALIXGS.acs-url "URLstring_of_info";
        option CALIXGS.spid "string_of_info";

Is there an example of this which I may examine?

Thanks,

John

John Gammon
Network Engineer
[cid:f7d91b91-f714-48e8-a095-e486dcf6fdf4]   [cid:4d2c5f96-fcab-4a56-bfc1-8727639cb2c4]
Forked Deer Electric Cooperative, Inc./Forked Deer Connect, LLC.
Halls, TN  38040
email:  john.gammon at forkeddeer.com


John Gammon

Network Engineer

Office   731-903-4282

john.gammon at forkeddeer.com<mailto:%20john.gammon at forkeddeer.com>

[fdec logo]

1135 North Church Street

PO Box 67

Halls, TN 38040

www.forkeddeer.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220425/121a5d9a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-akustohn.jpg
Type: image/jpeg
Size: 12241 bytes
Desc: Outlook-akustohn.jpg
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220425/121a5d9a/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-fkjg5w1x.png
Type: image/png
Size: 5038 bytes
Desc: Outlook-fkjg5w1x.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220425/121a5d9a/attachment-0001.png>


More information about the Kea-users mailing list