[Kea-users] custom option space
alexis
alzrck at gmail.com
Thu Nov 6 19:02:33 UTC 2014
yes i can, just cloned, ill make the repo version and test.
thanks a lot, if there’s anything i can help or test, please let me know
> On Nov 6, 2014, at 15:52, Marcin Siodelski <marcin at isc.org> wrote:
>
> Apparently, you are correct. I was able to reproduce this problem using
> Kea 0.9 release.
>
> The good news is that I made the same test on the tip of the master
> branch in git and it worked.
>
> Recently, we have gone through a big refactoring of the configuration
> code. In fact, there are still some tasks with respect to refactoring
> that need to be completed. But, what we have done so far does modify the
> logic that appends sub-options and apparently corrects the behavior that
> you're seeing.
>
> Would it work for you to just use the Kea version from git until version
> 0.9.1 is released around February 2015?
>
> Many thanks,
> Marcin
>
>
>
> On 11/06/14 18:32, alexis wrote:
>> release
>>
>> *administrator at mta-prov*:*/opt/kea/sbin*$ sudo ./kea-dhcp4 -v
>> [sudo] password for administrator:
>> 0.9
>>
>> downloaded
>>
>> *administrator at mta-prov*:*~*$ ls
>> *kea-0.9* *kea-0.9.tar.gz*
>>
>>
>>> On Nov 6, 2014, at 14:15, Marcin Siodelski <marcin at isc.org
>>> <mailto:marcin at isc.org>> wrote:
>>>
>>> I see. What is the Kea version you're trying? Is it a 0.9 release or it
>>> is built from git?
>>>
>>> Marcin
>>>
>>> On 11/06/14 18:12, alexis wrote:
>>>> No no, look that behind says (stripped, all suboptions are declared),
>>>> all options are declared from 122.1 to 122.10 i just not added to the
>>>> mail to make it shorter and easier to read.
>>>>
>>>>> On Nov 6, 2014, at 12:22, Marcin Siodelski <marcin at isc.org
>>>>> <mailto:marcin at isc.org>
>>>>> <mailto:marcin at isc.org>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> From this stripped configuration it seems that you provided option
>>>>> definitions for sub-options with codes 1 and 2. Whereas, you specify
>>>>> actual option-data for option 3 and 6, for which I don't see any
>>>>> definitions in this configuration.
>>>>>
>>>>> Perhaps you sent wrong parts of the configuration?
>>>>>
>>>>> Thanks,
>>>>> Marcin
>>>>>
>>>>> On 11/06/14 13:10, alexis wrote:
>>>>>> Hello, im trying to configure and use option 122 in KEA (i have this
>>>>>> working perfectly on ISC) , i found your ticket #3236 but i believe
>>>>>> that
>>>>>> refers to have the option as common option.
>>>>>>
>>>>>> Thing is, on my DHCP offer option 122 is sent, but suboptions are not
>>>>>> sent at all (module for option 122 is 0 bytes length) , it should be
>>>>>> working right?
>>>>>>
>>>>>>
>>>>>> Here’s my config (stripped, all suboptions are declared)
>>>>>>
>>>>>> "option-def" :[
>>>>>> {
>>>>>> "name": "DHCP-server-1",
>>>>>> "code": 1,
>>>>>> "space": "pcc",
>>>>>> "type": "ipv4-address",
>>>>>> "record-types": "",
>>>>>> "array": false,
>>>>>> "encapsulate" : ""
>>>>>> },{
>>>>>> "name": "DHCP-server-2",
>>>>>> "code": 2,
>>>>>> "space": "pcc",
>>>>>> "type": "ipv4-address",
>>>>>> "record-types": "",
>>>>>> "array": false,
>>>>>> "encapsulate": ""
>>>>>> },
>>>>>> {
>>>>>> "name" :"clabs",
>>>>>> "code" : 122,
>>>>>> "space" : "dhcp4",
>>>>>> "type" : "empty",
>>>>>> "array" : false,
>>>>>> "record-types" : "",
>>>>>> "encapsulate" : “pcc"
>>>>>> }
>>>>>>
>>>>>>
>>>>>> and here’s how im trying to use it
>>>>>>
>>>>>> "option-data": [{
>>>>>> "name": "Provision-server",
>>>>>> "space" : "pcc",
>>>>>> "code" : 3,
>>>>>> "csv-format" : true,
>>>>>> "data": "provisioning.my3play.net
>>>>>> <http://provisioning.my3play.net>
>>>>>> <http://provisioning.my3play.net>
>>>>>> <http://provisioning.my3play.net <http://provisioning.my3play.net/>>"
>>>>>> },
>>>>>> {
>>>>>> "name": "Kerberos-Realm",
>>>>>> "space" : "pcc",
>>>>>> "code" : 6,
>>>>>> "csv-format" : true,
>>>>>> "data" : "BASIC.1"
>>>>>> },
>>>>>> {
>>>>>> "name": "clabs",
>>>>>> "space": "dhcp4",
>>>>>> "code": 122,
>>>>>> "csv-format": false,
>>>>>> "data" : ""
>>>>>> }],
>>>>>>
>>>>>>
>>>>>>
>>>>>> 122.3 and 122.6 are not sent at all
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Kea-users mailing list
>>>>>> Kea-users at lists.isc.org <mailto:Kea-users at lists.isc.org>
>>>>>> <mailto:Kea-users at lists.isc.org>
>>>>>> https://lists.isc.org/mailman/listinfo/kea-users
>>>>
>>
More information about the Kea-users
mailing list