all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH proxmox-api-types] add more network interface methods
Date: Wed,  8 Jan 2025 15:12:09 +0100	[thread overview]
Message-ID: <20250108141209.2486233-1-d.csapak@proxmox.com> (raw)

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


                 reply	other threads:[~2025-01-08 14:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250108141209.2486233-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal