Skip to content

Commit

Permalink
ovn-ic: do not restart ovn-controller (kubeovn#4624)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian authored Oct 16, 2024
1 parent 77abe0c commit 0dbe49e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/daemon/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package daemon

import (
"fmt"
"os/exec"
"sort"
"strings"

Expand Down Expand Up @@ -70,10 +69,6 @@ func (c *Controller) setICGateway() error {
if _, err := ovs.Exec("set", "open", ".", "external_ids:ovn-is-interconn=true"); err != nil {
return fmt.Errorf("failed to enable ic gateway, %w", err)
}
output, err := exec.Command("/usr/share/ovn/scripts/ovn-ctl", "restart_controller").CombinedOutput()
if err != nil {
return fmt.Errorf("failed to restart ovn-controller, %w, %q", err, output)
}
}
} else {
if _, err := ovs.Exec("set", "open", ".", "external_ids:ovn-is-interconn=false"); err != nil {
Expand Down

0 comments on commit 0dbe49e

Please sign in to comment.