f-21: api: update api
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
28afabbd63
commit
4470af0e9e
1 changed files with 13 additions and 7 deletions
|
|
@ -127,6 +127,12 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Subnet"
|
$ref: "#/components/schemas/Subnet"
|
||||||
|
"400":
|
||||||
|
description: Missing required field or unknown iface_type
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
"409":
|
"409":
|
||||||
description: Subnet already exists
|
description: Subnet already exists
|
||||||
content:
|
content:
|
||||||
|
|
@ -219,7 +225,7 @@ components:
|
||||||
|
|
||||||
SubnetCreateRequest:
|
SubnetCreateRequest:
|
||||||
type: object
|
type: object
|
||||||
required: [name, vpc, vxlan_id, local_ip, gateway_ip, cidr]
|
required: [name, vpc, vxlan_id, gateway_ip, cidr]
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -233,11 +239,10 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
description: VXLAN VNI identifier
|
description: VXLAN VNI identifier
|
||||||
example: 100
|
example: 100
|
||||||
local_ip:
|
iface_type:
|
||||||
type: string
|
type: string
|
||||||
format: ipv4
|
description: Interface type key defined in the agent config (e.g. vms, internet, admin). Falls back to default_interface if omitted or unknown.
|
||||||
description: Local VTEP IP address
|
example: vms
|
||||||
example: "10.0.0.5"
|
|
||||||
gateway_ip:
|
gateway_ip:
|
||||||
type: string
|
type: string
|
||||||
format: ipv4
|
format: ipv4
|
||||||
|
|
@ -264,9 +269,10 @@ components:
|
||||||
vxlan_id:
|
vxlan_id:
|
||||||
type: integer
|
type: integer
|
||||||
example: 100
|
example: 100
|
||||||
local_ip:
|
local_iface:
|
||||||
type: string
|
type: string
|
||||||
example: "10.0.0.5"
|
description: Resolved interface name
|
||||||
|
example: br-000000
|
||||||
gateway_ip:
|
gateway_ip:
|
||||||
type: string
|
type: string
|
||||||
example: "10.10.10.1"
|
example: "10.10.10.1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue