Add support for being dhcp relay target

Change-Id: I74af38dc555b7edee8331e31dfd1a2fbfe4f1151
This commit is contained in:
Michał Nasiadka 2021-08-13 07:47:42 +02:00 committed by Michal Nasiadka
parent 6027b173b9
commit e8ae953db2
3 changed files with 10 additions and 1 deletions

View File

@ -74,6 +74,10 @@ If you chose to utilize the dhcp server, You may wish to set default ranges:
dhcp_pool_start: 192.168.1.200
dhcp_pool_end: 192.168.1.250
If you want to use bifrost as a dhcp relay target, please set ``dhcp_pool_mask``:
dhcp_pool_mask: 255.255.255.0
And also set the default dhcp address lease time:
dhcp_lease_time: 12h

View File

@ -66,7 +66,7 @@ dhcp-range=192.168.122.2,192.168.122.254,12h
{% elif inventory_dhcp | bool == true %}
dhcp-range={{dhcp_pool_start}},static,{{dhcp_static_mask}},{{dhcp_lease_time}}
{% else %}
dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}
dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{% if dhcp_pool_mask is defined %}{{dhcp_pool_mask}},{% endif %}{{dhcp_lease_time}}
{% endif %}
# Override the default route supplied by dnsmasq, which assumes the

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds support for using dnsmasq as a DHCP relay target via the new
``dhcp_pool_mask`` parameter.