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 <5137689+vthapar@users.noreply.github.com>
  • Loading branch information
vthapar committed Aug 23, 2023
1 parent 75c46f8 commit 36ef528
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 36ef528

Please sign in to comment.