[Kea-users] What is the option called in Kea for the DOCSIS config file name?
Erik Andersen
eandersen at eoni.com
Sat May 12 07:50:42 UTC 2018
On 05/11/2018 02:57 PM, Erik Andersen wrote:
> So far, I have this snippet in my config:
>
> "option-data": [
> {
> "name": "configuration-file-name",
> "space": "vendor-4491",
> "data": "cm/012345678.cfg"
> },
> {
> "name": "time-offset",
> "space": "vendor-4491",
> "data": "-25200"
> },
> {
> "name": "tftp-servers",
> "space": "vendor-4491",
> "data": "2607:f248:20:1::5"
> },
> {
> "name": "time-servers",
> "space": "vendor-4491",
> "data": "2607:f248::33,2607:f248::34"
> }
> ],
>
> I would like to get the option for cable modem config file for DOCSIS.
> In ISC DHCP, it's something like this:
>
>
> # Define docsis options
> option space docsis code width 2 length width 2 hash size 17;
> option docsis.tftp-servers code 32 = array of ip6-address;
> option docsis.cablelabs-configuration-file code 33 = text;
> option docsis.cablelabs-syslog-servers code 34 = array of ip6-address;
> option docsis.device-id code 36 = string;
> option docsis.time-servers code 37 = array of ip6-address;
> option docsis.time-offset code 38 = signed integer 32;
> option vsio.docsis code 4491 = encapsulate docsis;
>
>
> ...
>
> option docsis.cablelabs-configuration-file = "some string.cfg"
>
>
> How do I see what options are defined by default in Kea?
>
> (This is for the DHCPv6 implementation.)
>
> Thanks,
>
> Erik Andersen
I found the answer to my own problem:
Have a look at
https://github.com/isc-projects/kea/blob/master/src/lib/dhcp/docsis3_option_defs.h
.
I ended up with something like this in my config:
"option-data": [
{
"name": "syslog-servers",
"space": "vendor-4491",
"data": "2607:f249::3a"
},
{
"name": "config-file",
"space": "vendor-4491",
"data": "cm/012345678.cfg"
},
{
"name": "time-offset",
"space": "vendor-4491",
"data": "-25200"
},
{
"name": "tftp-servers",
"space": "vendor-4491",
"data": "2607:f249:20:1::5"
},
{
"name": "time-servers",
"space": "vendor-4491",
"data": "2607:f249::33,2607:f249::34"
}
],
--
Erik Andersen
More information about the Kea-users
mailing list