
This PR adds a plugin to create tap devices. The plugin adds a tap device to the container. The plugin has a workaround for a golang netlink library which does not allow for tap devices with no owner/group to be created. When no tap owner/group is requested, the plugin will fall back to using the ip tool for creating the tap device. A fix to the golang netlink lib is pending. Signed-off-by: mmirecki <mmirecki@redhat.com>
10 lines
132 B
Go
10 lines
132 B
Go
// +build go1.9
|
|
|
|
package bitset
|
|
|
|
import "math/bits"
|
|
|
|
func trailingZeroes64(v uint64) uint {
|
|
return uint(bits.TrailingZeros64(v))
|
|
}
|