Skip to content

Commit

Permalink
Merge pull request #321 from stgraber/ovn
Browse files Browse the repository at this point in the history
incusd/network/ovs: Fix empty OVNBridgeMappings
  • Loading branch information
stgraber authored Dec 21, 2023
2 parents b266967 + 3e1f886 commit 7527f27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/server/network/ovs/ovs_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ func (o *VSwitch) OVNBridgeMappings(bridgeName string) ([]string, error) {
}

val := vSwitch.ExternalIDs["ovn-bridge-mappings"]
if val == "" {
return []string{}, nil
}

return strings.SplitN(val, ",", -1), nil
}

Expand Down

0 comments on commit 7527f27

Please sign in to comment.