[Kea-users] Kea vivso-suboption

Joern Wallstabe JWallstabe at xantaro.net
Mon Oct 23 08:52:09 UTC 2017


Hi Francis,

thanks for replying.
I have retested in 1.3. beta, but I don't get my data into option 125.
Option 125 does only contain the vendor id and no suboptions.

I try to migrate the below dhcpd config to kea (please see config snippets below).

What am I missing in the kea config ?

Best regards, Jörn

-----------------------
--- dhcpd --
# Create an option namespace called genexis for VIVSO (option 125)
option space genexis;
# Define the code names and data types within the genexis namespace
option genexis.gaps code 1 = text;

# Package the genexis namespace into option 125
option space vivso code width 4 length width 1;
option vivso.genexis code 25167 = encapsulate genexis;
option vivso.iana code 0 = string;
option op125 code 125 = encapsulate vivso;
---


-- kea config ---

"option-def": [
        {
            "name": "prov-server",
            "code": 1,
            "space": "vendor-25167",
            "type": "string",
            "record-types": "",
            "array": false,
            "encapsulate": ""
        },
...
],

    "subnet4": [
        {
...
               {
                "name": "vivso-suboptions",
                "data": "25167"
                },
                {
                "name": "prov-server",
                "code": 1,
                "space": "vendor-25167",
                "data": "s=10.1.2.3"
                }
...
---


-----Ursprüngliche Nachricht-----
Von: Francis Dupont [mailto:fdupont at isc.org]
Gesendet: Freitag, 20. Oktober 2017 14:43
An: Joern Wallstabe <JWallstabe at xantaro.net>
Cc: kea-users at lists.isc.org
Betreff: Re: [Kea-users] Kea vivso-suboption

Joern Wallstabe writes:
> sorry, first mail did not contain any text.. here it comes:
>
> I am trying to fill option 125 using the provided example in kea.conf
> (see conf snippet below).
> But dhcp offer only shows enterprise-number in option 125 and no
> suboptions= .
> I have tried version  1.2 an the latest 1.3 beta.
>
> Has anybody a hint, how to solve this problem ?
>
> Thank you in advance, Joern
> ----
>
> "subnet4": [
>         {
>           ...
>            "option-data": [
>                 {
>                     "name": "routers",
>                     "data": "192.0.2.1"
>                 },
>                 {   "name": "vivso-suboptions",
>                     "data": "4491"
>                 },
>                 {   "name": "tftp-servers",
>                     "space": "vendor-4491",
>                     "data": "192.168.1.1"
>                 },
>                 {
>                     "name": "vendor-encapsulated-options",
>                     "csv-format": false
>                 }
>           ]
> ....


=> vendor-encapsulated-options space is (in fact now was in 1.3) the space for the option 43. Option 125 is managed with the vendor-4491 space.
Look at 8.3.4 in the devel user/admin guide (but if you use the old option 43 please note that 1.3 improves a lot the way it is done).

Regards

Francis Dupont <fdupont at isc.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20171023/f9d419f7/attachment.html>


More information about the Kea-users mailing list