Skip to content

Commit

Permalink
Merge pull request #270 from srl-wim/br-pull-fix
Browse files Browse the repository at this point in the history
skip image verification for bridges
  • Loading branch information
hellt authored Feb 16, 2021
2 parents 4dd5a1b + 56cf587 commit 8862ef2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,12 @@ func (c *CLab) verifyLinks() error {
func (c *CLab) VerifyImages(ctx context.Context) error {
images := map[string]struct{}{}
for _, node := range c.Nodes {
images[node.Image] = struct{}{}
if node.Image == "" && node.Kind != "bridge" {
return fmt.Errorf("missing required image for node %s", node.ShortName)
}
if node.Image != "" {
images[node.Image] = struct{}{}
}
}

for image := range images {
Expand Down

0 comments on commit 8862ef2

Please sign in to comment.