Skip to content

Commit

Permalink
Merge pull request #60 from srl-wim/endpoint-name
Browse files Browse the repository at this point in the history
add check for endpoint name length
  • Loading branch information
hellt authored Sep 21, 2020
2 parents 22d84bb + ef0aad4 commit 0b20554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ func (c *cLab) NewEndpoint(e string) *Endpoint {
} else {
endpoint.EndpointName = split[1]
}

if len(endpoint.EndpointName) > 15 {
log.Fatalf("interface '%s' name too long > 15", endpoint.EndpointName)
}
return endpoint
}

0 comments on commit 0b20554

Please sign in to comment.