Skip to content

Commit

Permalink
vpcagent: ovn: preparation: use network.Vpc.Id
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed May 21, 2020
1 parent e0349f9 commit a7a3bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vpcagent/ovn/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (keeper *OVNNorthboundKeeper) ClaimNetwork(ctx context.Context, network *ag
args = append(args, ovnCreateArgs(netMdp, netMdp.Name)...)
args = append(args, ovnCreateArgs(dhcpopts, "dhcpopts")...)
args = append(args, "--", "add", "Logical_Switch", netLs.Name, "ports", "@"+netNrp.Name, "@"+netMdp.Name)
args = append(args, "--", "add", "Logical_Router", vpcLrName(network.VpcId), "ports", "@"+netRnp.Name)
args = append(args, "--", "add", "Logical_Router", vpcLrName(network.Vpc.Id), "ports", "@"+netRnp.Name)
return keeper.cli.Must(ctx, "ClaimNetwork", args)
}

Expand Down

0 comments on commit a7a3bea

Please sign in to comment.