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

Pool configuration #11

Open
BidwellNREL opened this issue Sep 10, 2024 · 1 comment
Open

Pool configuration #11

BidwellNREL opened this issue Sep 10, 2024 · 1 comment

Comments

@BidwellNREL
Copy link

A little confused by the example configuration. It appears by default that netbox-kea-dhcp will take the first address and last address and build the DHCP pool in Kea. The configuration example shows this:

Default pool<->IP range map: no map

#[pool_iprange_map]

Is this a way to customize or preferentially, turn off the pool? What directive is this section looking for?

@francoismdj
Copy link
Owner

francoismdj commented Sep 16, 2024

Hi,
You’r right about the first and last addresses of the IP range translated to the first and last addresses of the Kea pool. This mapping is hard coded so it isn’t customizable in config file. To turn off the pool, you can use the range filter:

[iprange_filter] 
status = "dhcp"

… and never assign the "dhcp" value to range status (a value which, by the way, does not exist in netbox 3.4). No pool will be created. And if a pool linked the the IP range already exist in Kea, it will be removed.

The section [pool_iprange_map] may accept any parameters other than start and end IP addresses. You may want to create custom attributes in netbox and use them to assign a DHCP options (like options 66 and 67 for PXE boot) to the pool.

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