api: network: add more methods to return types

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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2025-01-08 15:08:15 +01:00 committed by Fiona Ebner
parent bbba1c53a1
commit 3111c08f78

View File

@ -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 => {