Skip to content

Commit

Permalink
incusd/network/ovn: Fix BridgeAdd
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
  • Loading branch information
stgraber committed Dec 29, 2023
1 parent fd4d3a8 commit e0e12ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/server/network/ovs/ovs_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (o *VSwitch) BridgeAdd(bridgeName string, mayExist bool, hwaddr net.Hardwar
port := ovsSwitch.Port{
UUID: "port",
Name: bridgeName,
Interfaces: []string{"interface"},
Interfaces: []string{iface.UUID},
}

portOps, err := o.client.Create(&port)
Expand Down Expand Up @@ -97,7 +97,7 @@ func (o *VSwitch) BridgeAdd(bridgeName string, mayExist bool, hwaddr net.Hardwar
return err
}

if bridge.UUID != "" {
if bridge.UUID != "bridge" {
// Bridge already exists.
return nil
}
Expand Down

0 comments on commit e0e12ad

Please sign in to comment.