[pve-devel] [PATCH manager] api: network: add more methods to return types
Dominik Csapak
d.csapak at proxmox.com
Wed Jan 8 15:08:15 CET 2025
i forgot to add 'loopback' and 'dhcp' to the schema, which can be
returned here.
Signed-off-by: Dominik Csapak <d.csapak at 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
More information about the pve-devel
mailing list