|
@@ -430,7 +430,7 @@ func (n *network) restoreSubnetSandbox(s *subnet, brName, vxlanName string) erro
|
|
brIfaceOption := make([]osl.IfaceOption, 2)
|
|
brIfaceOption := make([]osl.IfaceOption, 2)
|
|
brIfaceOption = append(brIfaceOption, sbox.InterfaceOptions().Address(s.gwIP))
|
|
brIfaceOption = append(brIfaceOption, sbox.InterfaceOptions().Address(s.gwIP))
|
|
brIfaceOption = append(brIfaceOption, sbox.InterfaceOptions().Bridge(true))
|
|
brIfaceOption = append(brIfaceOption, sbox.InterfaceOptions().Bridge(true))
|
|
- Ifaces[fmt.Sprintf("%s+%s", brName, "br")] = brIfaceOption
|
|
|
|
|
|
+ Ifaces[brName+"+br"] = brIfaceOption
|
|
|
|
|
|
err := sbox.Restore(Ifaces, nil, nil, nil)
|
|
err := sbox.Restore(Ifaces, nil, nil, nil)
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -440,7 +440,7 @@ func (n *network) restoreSubnetSandbox(s *subnet, brName, vxlanName string) erro
|
|
Ifaces = make(map[string][]osl.IfaceOption)
|
|
Ifaces = make(map[string][]osl.IfaceOption)
|
|
vxlanIfaceOption := make([]osl.IfaceOption, 1)
|
|
vxlanIfaceOption := make([]osl.IfaceOption, 1)
|
|
vxlanIfaceOption = append(vxlanIfaceOption, sbox.InterfaceOptions().Master(brName))
|
|
vxlanIfaceOption = append(vxlanIfaceOption, sbox.InterfaceOptions().Master(brName))
|
|
- Ifaces[fmt.Sprintf("%s+%s", vxlanName, "vxlan")] = vxlanIfaceOption
|
|
|
|
|
|
+ Ifaces[vxlanName+"+vxlan"] = vxlanIfaceOption
|
|
err = sbox.Restore(Ifaces, nil, nil, nil)
|
|
err = sbox.Restore(Ifaces, nil, nil, nil)
|
|
if err != nil {
|
|
if err != nil {
|
|
return err
|
|
return err
|