f-21: code: add default interface
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
8a68d3818f
commit
7dd795f4aa
3 changed files with 7 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ type CreateSubnetCommand struct {
|
|||
func (c CreateSubnetCommand) Execute(db *badger.DB, cfg *configuration.Config) error {
|
||||
localIface, ok := cfg.Interfaces[c.IfaceType]
|
||||
if !ok {
|
||||
return fmt.Errorf("unknown iface_type %q: not found in config", c.IfaceType)
|
||||
localIface = cfg.DefaultInterface
|
||||
}
|
||||
kv.AddInDB(db, "subnet/"+c.Name+"/state", "creating")
|
||||
kv.AddInDB(db, "subnet/"+c.Name+"/vpc", c.VPC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue