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
  • Loading branch information
oilbeater committed Sep 30, 2020
1 parent 20e82c3 commit 2444d51
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 2444d51

Please sign in to comment.