Re: [pve-devel] [PATCH proxmox-ve-rs 12/21] sdn: add config module

2024-07-16 Thread Stefan Hanreich
On 6/27/24 12:54, Gabriel Goller wrote: > On 26.06.2024 14:15, Stefan Hanreich wrote: >> diff --git a/proxmox-ve-config/src/sdn/config.rs >> b/proxmox-ve-config/src/sdn/config.rs >> new file mode 100644 >> index 000..8454adf >> --- /dev/null >> +++ b/proxmox-ve-config/src/sdn/config.rs >> @@ -0

Re: [pve-devel] [PATCH proxmox-ve-rs 12/21] sdn: add config module

2024-06-27 Thread Gabriel Goller
On 26.06.2024 14:15, Stefan Hanreich wrote: diff --git a/proxmox-ve-config/src/sdn/config.rs b/proxmox-ve-config/src/sdn/config.rs new file mode 100644 index 000..8454adf --- /dev/null +++ b/proxmox-ve-config/src/sdn/config.rs @@ -0,0 +1,571 @@ [snip] +impl Display for DhcpType { +fn fmt

[pve-devel] [PATCH proxmox-ve-rs 12/21] sdn: add config module

2024-06-26 Thread Stefan Hanreich
Similar to how the IPAM module works, we separate the internal representation from the concrete schema of the configuration file. We provide structs for parsing the running SDN configuration and a struct that is used internally for representing an SDN configuration, as well as a method for convert