Add next-server option to Kea (#7505)

---------

Co-authored-by: Harm Kroon <harm.kroon@tomtom.com>
This commit is contained in:
H3Krn 2024-06-01 15:02:10 +02:00 committed by GitHub
parent 1e948bfc2f
commit 65ab1fd638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View File

@ -74,6 +74,12 @@
<allownew>true</allownew>
<help>Specifies a list of RFC 868 time servers available to the client.</help>
</field>
<field>
<id>subnet4.next_server</id>
<label>Next server</label>
<type>text</type>
<help>Next server IP address</help>
</field>
<field>
<id>subnet4.option_data.tftp_server_name</id>
<label>TFTP server</label>

View File

@ -141,6 +141,7 @@ class KeaDhcpv4 extends BaseModel
$record = [
'id' => $subnet_id++,
'subnet' => (string)$subnet->subnet,
'next-server' => (string)$subnet->next_server,
'option-data' => [],
'pools' => [],
'reservations' => []

View File

@ -36,6 +36,10 @@
<AddressFamily>ipv4</AddressFamily>
<Required>Y</Required>
</subnet>
<next_server type="NetworkField">
<NetMaskAllowed>N</NetMaskAllowed>
<AddressFamily>ipv4</AddressFamily>
</next_server>
<option_data_autocollect type="BooleanField">
<Default>1</Default>
<Required>Y</Required>