f-28: api: update api comportement and model

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-05-18 20:11:33 +02:00
commit cef465da2e
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 19 additions and 3 deletions

View file

@ -12,6 +12,7 @@ type VPC struct {
type SubnetCreateRequest struct {
Name string `json:"name"`
VPC string `json:"vpc"`
Mode string `json:"mode"`
VxlanID int `json:"vxlan_id"`
IfaceType string `json:"iface_type"`
GatewayIP string `json:"gateway_ip"`
@ -22,6 +23,7 @@ type Subnet struct {
Name string `json:"name"`
State string `json:"state"`
VPC string `json:"vpc"`
Mode string `json:"mode"`
VxlanID int `json:"vxlan_id"`
LocalIface string `json:"local_iface"`
GatewayIP string `json:"gateway_ip"`