Skip to content

Commit

Permalink
vpcagent: ovn: preparation: skip default vpc
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed May 21, 2020
1 parent a7a3bea commit 5fdd534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/vpcagent/ovn/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"yunion.io/x/log"
"yunion.io/x/pkg/errors"

apis "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/mcclient/auth"
mcclient_modules "yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/vpcagent/apihelper"
Expand Down Expand Up @@ -110,6 +111,9 @@ func (w *Worker) run(ctx context.Context, mss *agentmodels.ModelSets) (err error

ovndb.Mark(ctx)
for _, vpc := range mss.Vpcs {
if vpc.Id == apis.DEFAULT_VPC_ID {
continue
}
ovndb.ClaimVpc(ctx, vpc)
for _, network := range vpc.Networks {
ovndb.ClaimNetwork(ctx, network)
Expand Down

0 comments on commit 5fdd534

Please sign in to comment.