[pdm-devel] [PATCH proxmox-api-types v2 4/7] sdn: add list/create controller endpoints
Stefan Hanreich
s.hanreich at proxmox.com
Fri Aug 22 15:49:19 CEST 2025
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
pve-api-types/generate.pl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pve-api-types/generate.pl b/pve-api-types/generate.pl
index 34020ee..3f21ca0 100644
--- a/pve-api-types/generate.pl
+++ b/pve-api-types/generate.pl
@@ -115,6 +115,7 @@ Schema2Rust::register_format('pve-vlan-id-or-range' => { code => 'verifiers::ver
Schema2Rust::register_format('pve-sdn-bgp-rt' => { regex => '^(\d+):(\d+)$' });
Schema2Rust::register_format('pve-sdn-controller-id' => { regex => '^[a-z][a-z0-9_-]*[a-z0-9]$' });
Schema2Rust::register_format('pve-sdn-isis-net' => { regex => '^[a-fA-F0-9]{2}(\.[a-fA-F0-9]{4}){3,9}\.[a-fA-F0-9]{2}$' });
+Schema2Rust::register_format('pve-sdn-fabric-id' => { regex => '^[a-zA-Z0-9][a-zA-Z0-9-]{0,6}[a-zA-Z0-9]?$' });
# This is used as both a task status and guest status.
Schema2Rust::generate_enum('IsRunning', {
@@ -320,6 +321,12 @@ Schema2Rust::derive('SdnZonePending' => 'Clone', 'PartialEq');
api(POST => '/cluster/sdn/zones', 'create_zone', 'param-name' => 'CreateZone');
Schema2Rust::derive('CreateZone' => 'Clone', 'PartialEq');
+api(GET => '/cluster/sdn/controllers', 'list_controllers', 'return-name' => 'SdnController');
+Schema2Rust::derive('SdnController' => 'Clone', 'PartialEq');
+Schema2Rust::derive('SdnControllerPending' => 'Clone', 'PartialEq');
+api(POST => '/cluster/sdn/controllers', 'create_controller', 'param-name' => 'CreateController');
+Schema2Rust::derive('CreateController' => 'Clone', 'PartialEq');
+
api(GET => '/cluster/sdn/vnets', 'list_vnets', 'return-name' => 'SdnVnet');
Schema2Rust::derive('SdnVnet' => 'Clone', 'PartialEq');
Schema2Rust::derive('SdnVnetPending' => 'Clone', 'PartialEq');
--
2.47.2
More information about the pdm-devel
mailing list