public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH proxmox-api-types] add more network interface methods
@ 2025-01-08 14:12 Dominik Csapak
  0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2025-01-08 14:12 UTC (permalink / raw)
  To: pdm-devel

by doing `make refresh` after the new methods are documented in pve-manager
Fixes PDM api parse issue with 'dchp' enabled on PVE interfaces.

Missing methods were reported in the community forum:
https://forum.proxmox.com/threads/160166

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
`make refresh` was done with:
https://lore.proxmox.com/pve-devel/20250108140815.2484013-1-d.csapak@proxmox.com/
applied locally

after this is applied, one must rebuild/bump the server + ui part for
pdm to use it

 pve-api-types/src/generated/types.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pve-api-types/src/generated/types.rs b/pve-api-types/src/generated/types.rs
index 76c66b5..6fa41cf 100644
--- a/pve-api-types/src/generated/types.rs
+++ b/pve-api-types/src/generated/types.rs
@@ -4032,6 +4032,12 @@ serde_plain::derive_fromstr_from_deserialize!(NetworkInterfaceFamilies);
 /// The network configuration method for IPv4.
 #[derive(Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
 pub enum NetworkInterfaceMethod {
+    #[serde(rename = "loopback")]
+    /// loopback.
+    Loopback,
+    #[serde(rename = "dhcp")]
+    /// dhcp.
+    Dhcp,
     #[serde(rename = "manual")]
     /// manual.
     Manual,
-- 
2.39.5



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-08 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 14:12 [pdm-devel] [PATCH proxmox-api-types] add more network interface methods Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal