Skip to content

Commit

Permalink
perf: switch's router port's addresses to "router"
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Sep 10, 2021
1 parent 3aa2df4 commit 7f43f25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ func (c Client) createRouterPort(ls, lr, ip, mac string) error {
lrTols := fmt.Sprintf("%s-%s", lr, ls)
_, err := c.ovnNbCommand(MayExist, "lsp-add", ls, lsTolr, "--",
"set", "logical_switch_port", lsTolr, "type=router", "--",
"lsp-set-addresses", lsTolr, "router", "--",
"set", "logical_switch_port", lsTolr, fmt.Sprintf("addresses=\"%s\"", mac), "--",
"set", "logical_switch_port", lsTolr, fmt.Sprintf("options:router-port=%s", lrTols), "--",
"set", "logical_switch_port", lsTolr, fmt.Sprintf("external_ids:vendor=%s", util.CniTypeName))
Expand Down

0 comments on commit 7f43f25

Please sign in to comment.