Skip to content

Commit

Permalink
fix veth bridge name
Browse files Browse the repository at this point in the history
fixed naming of the veth pair connected to the bridge
  • Loading branch information
henderiw committed Sep 4, 2020
1 parent b7fc7e1 commit 46fcbfc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,10 @@ func (c *cLab) NewEndpoint(e string) *Endpoint {

// initialize the endpoint name based on the split function
if c.Nodes[split[0]].Kind == "bridge" {
endpoint.EndpointName = "veth" + "prefix" + split[1]
endpoint.EndpointName = "veth" + c.Conf.Prefix + split[1]
} else {
endpoint.EndpointName = split[1]
}


return endpoint
}

0 comments on commit 46fcbfc

Please sign in to comment.