Skip to content

Commit

Permalink
skip image verification for bridges
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Feb 16, 2021
1 parent 4dd5a1b commit 56cf587
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 56cf587

Please sign in to comment.