Skip to content

Commit

Permalink
allow duplicate macvlan / macvtap endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler authored and hellt committed Jul 25, 2023
1 parent f94fd70 commit ed690f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,11 @@ func (c *CLab) verifyLinks() error {
for _, e := range []*types.Endpoint{l.A, l.B} {
e_string := e.String()
if _, ok := endpoints[e_string]; ok {
// macvlan and macvtap interfaces can appear multiple times
if strings.Contains(e_string, "macvlan") || strings.Contains(e_string, "macvtap") {
continue
}

dups = append(dups, e_string)
}
endpoints[e_string] = struct{}{}
Expand Down

0 comments on commit ed690f3

Please sign in to comment.