i forgot to add 'loopback' and 'dhcp' to the schema, which can be
returned here.

Signed-off-by: Dominik Csapak <d.csa...@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

Reply via email to