Skip to content

Commit

Permalink
update dependencyManager fake node processing
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Jul 26, 2023
1 parent 4c85c48 commit 70c509a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions clab/clab.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,10 @@ func (c *CLab) CreateLinks(ctx context.Context, workers uint, dm dependency_mana

var waitNodes []string
for _, n := range []*types.NodeConfig{li.A.Node, li.B.Node} {
// we should not wait for "host", "mgmt-net" and "macvlan" fake nodes
// as they are never managed by dependency manager (never really get created)
if n.Kind == "host" || n.ShortName == "mgmt-net" || n.Kind == "macvlan" {
continue
// we should not wait for "host" fake node or mgmt-net node
if n.Kind != "host" && n.ShortName != "mgmt-net" && n.ShortName != "macvlan" {
waitNodes = append(waitNodes, n.ShortName)
}
waitNodes = append(waitNodes, n.ShortName)
}

err := dm.WaitForNodes(waitNodes, dependency_manager.NodeStateCreated)
Expand Down

0 comments on commit 70c509a

Please sign in to comment.