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

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


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

only message in thread, other threads:[~2025-01-08 14:09 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:08 [pve-devel] [PATCH manager] api: network: add more methods to return types 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