Skip to content

Commit

Permalink
Upgrade changes for OVN IC
Browse files Browse the repository at this point in the history
When a submariner installation upgrades from legacy non-OVN-IC version to
an OVN-IC version, cleanup resources created by legacy installation.

Fixes submariner-io/enhancements#193

Signed-off-by: Vishal Thapar <[email protected]>
  • Loading branch information
vthapar authored and skitt committed Aug 30, 2023
1 parent 740b0b4 commit a2fe53d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/routeagent_driver/handlers/ovn/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func (ovn *Handler) GetNetworkPlugins() []string {
}

func (ovn *Handler) Init() error {
ovn.LegacyCleanup()

err := ovn.initIPtablesChains()
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/routeagent_driver/handlers/ovn/vsctl/vsctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func AddBridge(bridgeName string) error {
}

func DelBridge(bridgeName string) error {
_, err := vsctlCmd("del-br", bridgeName)
_, err := vsctlCmd("--if-exists", "del-br", bridgeName)

return err
}
Expand Down

0 comments on commit a2fe53d

Please sign in to comment.