From bd7fc6431b2e7171376e95f56c7414c930a0937a Mon Sep 17 00:00:00 2001 From: ronyweng Date: Fri, 23 Sep 2016 18:51:16 +0800 Subject: [PATCH] Fix macvlan private mode argument vaildation Signed-off-by: Rony Weng --- libnetwork/drivers/macvlan/macvlan_network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnetwork/drivers/macvlan/macvlan_network.go b/libnetwork/drivers/macvlan/macvlan_network.go index 071fe349f3..2975596593 100644 --- a/libnetwork/drivers/macvlan/macvlan_network.go +++ b/libnetwork/drivers/macvlan/macvlan_network.go @@ -44,8 +44,8 @@ func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo case "", modeBridge: // default to macvlan bridge mode if -o macvlan_mode is empty config.MacvlanMode = modeBridge - case modeOpt: - config.MacvlanMode = modeOpt + case modePrivate: + config.MacvlanMode = modePrivate case modePassthru: config.MacvlanMode = modePassthru case modeVepa: