[management] Add support to allocate same port for public and internal (#3347)

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
Bethuel Mmbaga
2025-02-21 11:16:24 +03:00
committed by GitHub
parent 630edf2480
commit 4ebf1410c6
2 changed files with 48 additions and 8 deletions

View File

@@ -1693,10 +1693,12 @@ components:
type: array
items:
$ref: '#/components/schemas/IngressPortAllocationRequestPortRange'
direct_port:
description: Direct port allocation
$ref: '#/components/schemas/IngressPortAllocationRequestDirectPort'
required:
- name
- enabled
- port_ranges
IngressPortAllocationRequestPortRange:
type: object
properties:
@@ -1711,12 +1713,27 @@ components:
protocol:
description: The protocol accepted by the port range
type: string
enum: [ "tcp", "udp" ]
enum: [ "tcp", "udp", "tcp/udp" ]
example: tcp
required:
- start
- end
- protocol
IngressPortAllocationRequestDirectPort:
type: object
properties:
count:
description: The number of ports to be forwarded
type: integer
example: 5
protocol:
description: The protocol accepted by the port
type: string
enum: [ "tcp", "udp", "tcp/udp" ]
example: udp
required:
- count
- protocol
IngressPortAllocation:
type: object
properties:
@@ -1779,7 +1796,7 @@ components:
protocol:
description: Protocol accepted by the ports
type: string
enum: [ "tcp", "udp" ]
enum: [ "tcp", "udp", "tcp/udp" ]
example: tcp
required:
- translated_start