mirror of
https://github.com/containers/podman.git
synced 2025-08-05 19:02:37 +08:00
add macvlan as a supported network driver
instead of using the --macvlan to indicate that you want to make a macvlan network, podman network create now honors the driver name of *macvlan*. Any options to macvlan, like the parent device, should be specified as a -o option. For example, -o parent=eth0. the --macvlan option was marked as deprecated in the man page but is still supported for the duration of 3.0. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -17,11 +17,17 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// DefaultNetworkDriver is the default network type used
|
||||
var DefaultNetworkDriver = "bridge"
|
||||
var (
|
||||
// BridgeNetworkDriver defines the bridge cni driver
|
||||
BridgeNetworkDriver = "bridge"
|
||||
// DefaultNetworkDriver is the default network type used
|
||||
DefaultNetworkDriver = BridgeNetworkDriver
|
||||
// MacVLANNetworkDriver defines the macvlan cni driver
|
||||
MacVLANNetworkDriver = "macvlan"
|
||||
)
|
||||
|
||||
// SupportedNetworkDrivers describes the list of supported drivers
|
||||
var SupportedNetworkDrivers = []string{DefaultNetworkDriver}
|
||||
var SupportedNetworkDrivers = []string{BridgeNetworkDriver, MacVLANNetworkDriver}
|
||||
|
||||
// isSupportedDriver checks if the user provided driver is supported
|
||||
func isSupportedDriver(driver string) error {
|
||||
|
Reference in New Issue
Block a user