mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 23:29:08 +00:00
Implement Kea DHCP v4
This commit is contained in:
parent
f43e44c820
commit
142e85f08f
5 changed files with 268 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
use core::time;
|
||||
use macaddr::MacAddr8;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use validator::Validate;
|
||||
|
@ -15,11 +14,11 @@ pub struct DHCPServer {
|
|||
pub name: String,
|
||||
pub interface: String,
|
||||
pub pool: Vec<String>,
|
||||
pub lease_time: time::Duration,
|
||||
pub lease_time: u64,
|
||||
pub gateway_mode: GatewayMode,
|
||||
pub dns_server_mode: DNSServerMode,
|
||||
pub ntp_server_mode: NTPServerMode,
|
||||
pub reservations: Vec<Reservation>,
|
||||
// pub reservations: Vec<Reservation>,
|
||||
pub comment: String,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue