feat(opnsense-config): dnsmasq dhcp static mappings (#130)
All checks were successful
Run Check Script / check (pull_request) Successful in 59s
All checks were successful
Run Check Script / check (pull_request) Successful in 59s
Co-authored-by: Jean-Gabriel Gill-Couture <jeangabriel.gc@gmail.com> Co-authored-by: Ian Letourneau <ian@noma.to> Reviewed-on: #130 Reviewed-by: Ian Letourneau <ian@noma.to> Co-authored-by: Jean-Gabriel Gill-Couture <jg@nationtech.io> Co-committed-by: Jean-Gabriel Gill-Couture <jg@nationtech.io>
This commit is contained in:
@@ -36,6 +36,27 @@ pub struct DnsMasq {
|
||||
pub dhcp_options: Vec<DhcpOptions>,
|
||||
pub dhcp_boot: Vec<DhcpBoot>,
|
||||
pub dhcp_tags: Vec<RawXml>,
|
||||
pub hosts: Vec<DnsmasqHost>,
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize, Clone)]
|
||||
#[yaserde(rename = "hosts")]
|
||||
pub struct DnsmasqHost {
|
||||
#[yaserde(attribute = true)]
|
||||
pub uuid: String,
|
||||
pub host: String,
|
||||
pub domain: MaybeString,
|
||||
pub local: MaybeString,
|
||||
pub ip: MaybeString,
|
||||
pub cnames: MaybeString,
|
||||
pub client_id: MaybeString,
|
||||
pub hwaddr: MaybeString,
|
||||
pub lease_time: MaybeString,
|
||||
pub ignore: Option<u8>,
|
||||
pub set_tag: MaybeString,
|
||||
pub descr: MaybeString,
|
||||
pub comments: MaybeString,
|
||||
pub aliases: MaybeString,
|
||||
}
|
||||
|
||||
// Represents the <dhcp> element and its nested fields.
|
||||
|
||||
@@ -189,7 +189,7 @@ pub struct System {
|
||||
pub timeservers: String,
|
||||
pub webgui: WebGui,
|
||||
pub usevirtualterminal: u8,
|
||||
pub disablenatreflection: String,
|
||||
pub disablenatreflection: Option<String>,
|
||||
pub disableconsolemenu: u8,
|
||||
pub disablevlanhwfilter: u8,
|
||||
pub disablechecksumoffloading: u8,
|
||||
@@ -256,7 +256,7 @@ pub struct Firmware {
|
||||
#[yaserde(rename = "type")]
|
||||
pub firmware_type: MaybeString,
|
||||
pub subscription: MaybeString,
|
||||
pub reboot: MaybeString,
|
||||
pub reboot: Option<MaybeString>,
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
|
||||
@@ -267,12 +267,12 @@ pub struct Bogons {
|
||||
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
|
||||
pub struct Group {
|
||||
pub name: String,
|
||||
pub description: String,
|
||||
pub description: Option<String>,
|
||||
pub scope: String,
|
||||
pub gid: u32,
|
||||
pub member: Vec<u32>,
|
||||
pub member: String,
|
||||
#[yaserde(rename = "priv")]
|
||||
pub priv_field: String,
|
||||
pub priv_field: Option<String>,
|
||||
pub source_networks: Option<MaybeString>,
|
||||
}
|
||||
|
||||
@@ -1449,6 +1449,9 @@ pub struct Vip {
|
||||
pub advbase: Option<MaybeString>,
|
||||
pub advskew: Option<MaybeString>,
|
||||
pub descr: Option<MaybeString>,
|
||||
pub peer: Option<MaybeString>,
|
||||
pub peer6: Option<MaybeString>,
|
||||
pub nosync: Option<MaybeString>,
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
|
||||
|
||||
Reference in New Issue
Block a user