diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-09-04 10:18:34 +0200 |
|---|---|---|
| committer | Wolfgang Bumiller <w.bumiller@proxmox.com> | 2025-09-04 14:16:41 +0200 |
| commit | b8efb8065449420a0d207e4ca4c8908e1c3ad0f8 (patch) | |
| tree | 807e19b69be2569e2e92bc3951df24e834059d65 /src/PVE/Network/SDN/Zones/VxlanPlugin.pm | |
| parent | d3bd0d5b48265f5f9e1e872cfdded385a0d28725 (diff) | |
api: zones: update schema of endpoints
The possible properties returned by the zone endpoints were only
partly documented. Add all missing properties and improve descriptions
for existing properties.
Extract all duplicate properties into a separate variable, so we
don't have to rewrite the whole API definition for every endpoint.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Diffstat (limited to 'src/PVE/Network/SDN/Zones/VxlanPlugin.pm')
| -rw-r--r-- | src/PVE/Network/SDN/Zones/VxlanPlugin.pm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm index 8f6fba0..1db610f 100644 --- a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm +++ b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm @@ -27,20 +27,22 @@ sub type { sub properties { return { 'peers' => { - description => "peers address list.", + description => + "Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes.", type => 'string', format => 'ip-list', }, - fabric => { - description => "SDN fabric to use as underlay for this VXLAN zone.", - type => 'string', - format => 'pve-sdn-fabric-id', - }, 'vxlan-port' => { - description => "Vxlan tunnel udp port (default 4789).", + description => "UDP port that should be used for the VXLAN tunnel (default 4789).", minimum => 1, maximum => 65536, type => 'integer', + default => 4789, + }, + fabric => { + description => "SDN fabric to use as underlay for this VXLAN zone.", + type => 'string', + format => 'pve-sdn-fabric-id', }, }; } |
