f-34: route: add default gateway full gestion
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d15454d35b
commit
46596f8142
13 changed files with 396 additions and 51 deletions
|
|
@ -20,6 +20,7 @@ type SubnetCreateRequest struct {
|
|||
InterfaceIP string `json:"interface_ip"`
|
||||
CIDR string `json:"cidr"`
|
||||
DefaultRoute bool `json:"default_route"`
|
||||
Gateway string `json:"gateway"`
|
||||
}
|
||||
|
||||
type Subnet struct {
|
||||
|
|
@ -32,6 +33,7 @@ type Subnet struct {
|
|||
InterfaceIP string `json:"interface_ip"`
|
||||
CIDR string `json:"cidr"`
|
||||
DefaultRoute bool `json:"default_route"`
|
||||
Gateway string `json:"gateway"`
|
||||
}
|
||||
|
||||
type VMInterface struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue