bootstrap: impl Default for NetworkInterface

This commit is contained in:
Mikaël Cluseau
2026-01-07 18:24:02 +01:00
parent 93e5570293
commit d9fa31ec33

View File

@ -78,6 +78,17 @@ pub struct NetworkInterface {
pub udev: Option<UdevFilter>,
}
impl Default for NetworkInterface {
fn default() -> Self {
Self {
var: "iface".into(),
n: 1,
regexps: Vec::new(),
udev: Some(UdevFilter::Eq("INTERFACE".into(), "eth0".into())),
}
}
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct SSHServer {
pub listen: String,