wip: PXE setup for ipxe and okd files in progress
Some checks failed
Run Check Script / check (pull_request) Failing after 36s

This commit is contained in:
2025-08-21 17:28:17 -04:00
parent e956772593
commit da6610c625
24 changed files with 1242 additions and 209 deletions

View File

@@ -1,4 +1,4 @@
use yaserde::MaybeString;
use yaserde::{MaybeString, RawXml};
use yaserde_derive::{YaDeserialize, YaSerialize};
// This is the top-level struct that represents the entire <dnsmasq> element.
@@ -35,6 +35,7 @@ pub struct DnsMasq {
pub dhcp_ranges: Vec<DhcpRange>,
pub dhcp_options: Vec<DhcpOptions>,
pub dhcp_boot: Vec<DhcpBoot>,
pub dhcp_tags: Vec<RawXml>,
}
// Represents the <dhcp> element and its nested fields.
@@ -44,6 +45,7 @@ pub struct Dhcp {
pub no_interface: MaybeString,
pub fqdn: u8,
pub domain: MaybeString,
pub local: Option<MaybeString>,
pub lease_max: MaybeString,
pub authoritative: u8,
pub default_fw_rules: u8,
@@ -86,10 +88,10 @@ pub struct DhcpBoot {
pub uuid: String,
pub interface: MaybeString,
pub tag: MaybeString,
pub filename: String,
pub filename: Option<String>,
pub servername: String,
pub address: String,
pub description: String,
pub description: Option<String>,
}
// Represents a single <dhcp_options> element.