Skip to content

Commit

Permalink
fix: do not adv join cidr when enable ovn-ic
Browse files Browse the repository at this point in the history
(cherry picked from commit 2444d51)
  • Loading branch information
oilbeater committed Oct 17, 2020
1 parent 34952c8 commit 42b7aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c Client) SetAzName(azName string) error {

func (c Client) SetICAutoRoute(enable bool) error {
if enable {
if _, err := c.ovnNbCommand("set", "NB_Global", ".", "options:ic-route-adv=true", "options:ic-route-learn=true"); err != nil {
if _, err := c.ovnNbCommand("set", "NB_Global", ".", "options:ic-route-adv=true", "options:ic-route-learn=true", fmt.Sprintf("options:ic-route-blacklist=%s", c.NodeSwitchCIDR)); err != nil {
return fmt.Errorf("failed to enable ovn-ic auto route, %v", err)
}
return nil
Expand Down

0 comments on commit 42b7aa1

Please sign in to comment.