浏览代码

Fix internal macvlan network to work in swarm

Using dummy interface allows communication beween containers only if
they are running on the same node in swam.

Signed-off-by: Pavel Matěja <pavel@verotel.cz>
Pavel Matěja 6 年之前
父节点
当前提交
b0bce9159e
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      libnetwork/drivers/macvlan/macvlan_network.go

+ 0 - 3
libnetwork/drivers/macvlan/macvlan_network.go

@@ -198,12 +198,9 @@ func parseNetworkOptions(id string, option options.Generic) (*configuration, err
 			return nil, err
 		}
 	}
-	// setting the parent to "" will trigger an isolated network dummy parent link
 	if val, ok := option[netlabel.Internal]; ok {
 		if internal, ok := val.(bool); ok && internal {
 			config.Internal = true
-			// empty --parent= and --internal are handled the same.
-			config.Parent = ""
 		}
 	}