francoismdj/netbox-kea-dhcp

Feature-Request: Get Information from Parent-Prefix

Opened this issue · 1 comments

Hello,

would it be possible to read various DHCP options such as the domain name or the NTP server from the parent prefix? In most cases, the options are the same for all subnets, so that they do not have to be configured individually for each subnet as a Custom_Field in Netbox.

Thanks and Regards,
Daniel

Hello,
It would be great!
If I’m right, netbox doesn’t provide hierarchical relations between prefixes. The API have the filter "contains" which applied on prefixes requests and return all the prefixes which contain an other. As a consequence, we have to compute the prefix hierarchy on our side in order to get the last defined custom field. Relevant code for mapping netbox fields to DHCP parameters is in module connector in function _mk_dhcp_item().
If someone may write a PR it would be great :-)