f-56: agent: MTU unique network.mtu_vm, underlay à 9000 contrôlé à la création, option DHCP 26 et host_mtu #56
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d1b50d546c
commit
8cb5117cb2
37 changed files with 518 additions and 24 deletions
|
|
@ -63,6 +63,16 @@ func (c CreateSubnetCommand) Prepare(db *badger.DB, cfg *configuration.Config) e
|
|||
if !ok {
|
||||
localIface = cfg.DefaultInterface
|
||||
}
|
||||
switch c.Mode {
|
||||
case subnet.ModeVxlan:
|
||||
if err := checkUnderlay(cfg, localIface); err != nil {
|
||||
return err
|
||||
}
|
||||
case subnet.ModeBridge:
|
||||
if err := checkBridge(cfg, localIface); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
state.Set(db, c.Key(), state.Creating)
|
||||
kv.AddInDB(db, "subnet/"+c.Name+"/vpc", c.VPC)
|
||||
kv.AddInDB(db, "subnet/"+c.Name+"/mode", c.Mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue