Tested-by: Christoph Heiss <c.he...@proxmox.com> Reviewed-by: Christoph Heiss <c.he...@proxmox.com> Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- proxmox-auto-installer/src/lib.rs | 1 + proxmox-auto-installer/src/udevinfo.rs | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 proxmox-auto-installer/src/udevinfo.rs
diff --git a/proxmox-auto-installer/src/lib.rs b/proxmox-auto-installer/src/lib.rs index 7813b98..8cda416 100644 --- a/proxmox-auto-installer/src/lib.rs +++ b/proxmox-auto-installer/src/lib.rs @@ -1 +1,2 @@ pub mod answer; +pub mod udevinfo; diff --git a/proxmox-auto-installer/src/udevinfo.rs b/proxmox-auto-installer/src/udevinfo.rs new file mode 100644 index 0000000..a6b61b5 --- /dev/null +++ b/proxmox-auto-installer/src/udevinfo.rs @@ -0,0 +1,9 @@ +use serde::Deserialize; +use std::collections::BTreeMap; + +#[derive(Clone, Deserialize, Debug)] +pub struct UdevInfo { + // use BTreeMap to have keys sorted + pub disks: BTreeMap<String, BTreeMap<String, String>>, + pub nics: BTreeMap<String, BTreeMap<String, String>>, +} -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel