f-89: subnet: mode public_ip raccordé au bridge public comme bridge #89
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
077f1877e8
commit
46aad1e7c5
8 changed files with 61 additions and 8 deletions
|
|
@ -64,12 +64,15 @@ func (c CreateSubnetCommand) Prepare(db *badger.DB, cfg *configuration.Config) e
|
|||
if !ok {
|
||||
localIface = cfg.DefaultInterface
|
||||
}
|
||||
if c.Mode == subnet.ModePublicIP {
|
||||
localIface = cfg.PublicBridge()
|
||||
}
|
||||
switch c.Mode {
|
||||
case subnet.ModeVxlan:
|
||||
if err := checkUnderlay(cfg, localIface); err != nil {
|
||||
return err
|
||||
}
|
||||
case subnet.ModeBridge:
|
||||
case subnet.ModeBridge, subnet.ModePublicIP:
|
||||
if err := checkBridge(cfg, localIface); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue