[Kea-users] vendor-encapsulated-options

Derek Lambert dlambert at dereklambert.com
Wed Jan 27 15:05:44 UTC 2016


It's also failing with the same message when combined with client classes
on 1.0 :(

  "option-def": [
    {
      "name":  "microsoft-disable-netbios",
      "code":  1,
      "space": "vendor-encapsulated-options-space",
      "type":  "uint8"
    },
    {
      "name":  "microsoft-release-lease",
      "code":  2,
      "space": "vendor-encapsulated-options-space",
      "type":  "uint8"
    },
    {
      "name":  "cisco-lwapp-servers",
      "code":  241,
      "space": "vendor-encapsulated-options-space",
      "type":  "ipv4-address",
      "array": true
    }
  ],
  "client-classes": [
    {
      "name": "MSFT_5_0",
      "test": "option[60].hex == 'MSFT 5.0'",
      "option-data": [
        {
          "name":       "microsoft-disable-netbios",
          "code":       1,
          "space":      "vendor-encapsulated-options-space",
          "csv-format": true,
          "data":       "2"
        },
        {
          "name":       "microsoft-release-lease",
          "code":       2,
          "space":      "vendor-encapsulated-options-space",
          "csv-format": true,
          "data":       "1"
        },
        {
          "name": "vendor-encapsulated-options"
        }
      ]
    },
    {
      "name": "Cisco_AP",
      "test": "substring(option[60].hex,0,8) == 'Cisco AP'",
      "option-data": [
        {
          "name":       "cisco-lwapp-servers",
          "code":       241,
          "space":      "vendor-encapsulated-options-space",
          "csv-format": true,
          "data":       "10.10.40.20"
        },
        {
          "name": "vendor-encapsulated-options"
        }
      ]
    }
  ]



On Wed, Jan 27, 2016 at 3:28 AM, Ola Thoresen <ola at nytt.no> wrote:

> Just tested an upgrade to v 1.0 but it still errors out with the same
> message.
>
>
>
>
>
> On 26. jan. 2016 16:21, Ola Thoresen wrote:
>
>> Testing a bit with vendor-encapsulated-options, but can't seem to get it
>> right.
>>
>> I have created a (global) option-def to add a few Option-43 values:
>>
>>    "option-def": [
>>      {
>>          "name": "config-file-name",
>>          "code": 1,
>>          "space": "vendor-encapsulated-options-space",
>>          "type": "string",
>>          "array": false,
>>          "record-types": "",
>>          "encapsulate": ""
>>      },
>>      {
>>          "name": "image-file-type",
>>          "code": 2,
>>          "space": "vendor-encapsulated-options-space",
>>          "type": "string",
>>          "array": false,
>>          "record-types": "",
>>          "encapsulate": ""
>>      }
>>      ],
>>
>> But when I try to add the following option-data, the server fails to
>> start:
>>
>>    "option-data": [
>>      {
>>          "name": "vendor-encapsulated-options"
>>      },
>>      {
>>          "name": "config-file-name",
>>          "code": 1,
>>          "space": "vendor-encapsulated-options-space",
>>          "csv-format": true,
>>          "data": "config.conf"
>>      },
>>      {
>>          "name": "image-file-type",
>>          "code": 2,
>>          "space": "vendor-encapsulated-options-space",
>>          "csv-format": true,
>>          "data": "symlink"
>>      }
>>      ],
>>
>> If I omit the first three lines in option-data {"name":
>> "vendor-encapsulated-options"}, the server starts fine, but the options
>> are not sent.
>> If I add those lines, the server fails to start, with the following error:
>>     DHCP4_PARSER_FAIL failed to create or run parser for configuration
>> element option-data: option data does not match option definition
>> (space: dhcp4, code: 43): no option value specified
>> (/etc/kea/kea.conf:65:7)
>>
>> I have tried to add some "data": "" of various types to the
>> "vendor-encapsulated-options" but it does not change anything.
>> What am I missing here?
>>
>> This is kea-0.9.2-2.fc22.x86_64.rpm
>> I can try to download and compile the 1.0-version if that helps
>>
>>
>>
>> Rgds.
>>
>> Ola Thoresen
>>
>>
>>
>>
>>
>> _______________________________________________
>> Kea-users mailing list
>> Kea-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-users
>>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20160127/ba7d14dd/attachment.htm>


More information about the Kea-users mailing list