Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-Request: Get Information from Parent-Prefix #6

Open
klenzel opened this issue Aug 1, 2023 · 1 comment
Open

Feature-Request: Get Information from Parent-Prefix #6

klenzel opened this issue Aug 1, 2023 · 1 comment

Comments

@klenzel
Copy link

klenzel commented Aug 1, 2023

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

@francoismdj
Copy link
Owner

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants