From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager] api: network: add more methods to return types
Date: Wed, 8 Jan 2025 15:08:15 +0100 [thread overview]
Message-ID: <20250108140815.2484013-1-d.csapak@proxmox.com> (raw)
i forgot to add 'loopback' and 'dhcp' to the schema, which can be
returned here.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
PVE/API2/Network.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index cfccdd9e..12ee6cca 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -278,13 +278,13 @@ __PACKAGE__->register_method({
method => {
type => "string",
description => "The network configuration method for IPv4.",
- enum => ["manual", "static", "auto"],
+ enum => ["loopback", "dhcp", "manual", "static", "auto"],
optional => 1,
},
method6 => {
type => "string",
description => "The network configuration method for IPv6.",
- enum => ["manual", "static", "auto"],
+ enum => ["loopback", "dhcp", "manual", "static", "auto"],
optional => 1,
},
options => {
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-01-08 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 14:08 Dominik Csapak [this message]
2025-02-04 10:17 ` [pve-devel] applied: " Fiona Ebner
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=20250108140815.2484013-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pve-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox