mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Merge pull request #16747 from Luap99/ipvlan-parent
network create: support "-o parent=XXX" for ipvlan
This commit is contained in:
@ -125,7 +125,7 @@ func networkCreate(cmd *cobra.Command, args []string) error {
|
||||
logrus.Warn("The --macvlan option is deprecated, use `--driver macvlan --opt parent=<device>` instead")
|
||||
network.Driver = types.MacVLANNetworkDriver
|
||||
network.NetworkInterface = networkCreateOptions.MacVLAN
|
||||
} else if networkCreateOptions.Driver == types.MacVLANNetworkDriver {
|
||||
} else if networkCreateOptions.Driver == types.MacVLANNetworkDriver || networkCreateOptions.Driver == types.IPVLANNetworkDriver {
|
||||
// new -d macvlan --opt parent=... syntax
|
||||
if parent, ok := network.Options["parent"]; ok {
|
||||
network.NetworkInterface = parent
|
||||
|
||||
Reference in New Issue
Block a user