diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-02 05:53:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 05:53:15 -0500 |
commit | 2314af70bdacf75135a11b48b87dba8e461a43ea (patch) | |
tree | b5083d04cb87739a1ff38295fc1fa0b4fadc90e3 /libpod/network/network.go | |
parent | 52575db9b40ad141dc5521d7646e8ed636651b54 (diff) | |
parent | e11d8f15e8d7559bc70ebef2dd0125be9d692da5 (diff) | |
download | podman-2314af70bdacf75135a11b48b87dba8e461a43ea.tar.gz podman-2314af70bdacf75135a11b48b87dba8e461a43ea.tar.bz2 podman-2314af70bdacf75135a11b48b87dba8e461a43ea.zip |
Merge pull request #9189 from baude/macvlandriver
add macvlan as a supported network driver
Diffstat (limited to 'libpod/network/network.go')
-rw-r--r-- | libpod/network/network.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libpod/network/network.go b/libpod/network/network.go index 0fb878b18..0ff14c1f7 100644 --- a/libpod/network/network.go +++ b/libpod/network/network.go @@ -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 { |