1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix createTestNetwork bug

Signed-off-by: Bao Yonglei <baoyonglei@huawei.com>
This commit is contained in:
Bao Yonglei 2015-05-17 15:33:08 +08:00
parent 31404b26aa
commit 8dc3f3be47

View file

@ -219,15 +219,18 @@ func TestBridge(t *testing.T) {
} }
netOption := options.Generic{ netOption := options.Generic{
"BridgeName": bridgeName, netlabel.GenericData: options.Generic{
"AddressIPv4": subnet, "BridgeName": bridgeName,
"FixedCIDR": cidr, "AddressIPv4": subnet,
"FixedCIDRv6": cidrv6, "FixedCIDR": cidr,
"EnableIPv6": true, "FixedCIDRv6": cidrv6,
"EnableIPTables": true, "EnableIPv6": true,
"EnableIPMasquerade": true, "EnableIPTables": true,
"EnableICC": true, "EnableIPMasquerade": true,
"AllowNonDefaultBridge": true} "EnableICC": true,
"AllowNonDefaultBridge": true,
},
}
network, err := createTestNetwork(bridgeNetType, "testnetwork", option, netOption) network, err := createTestNetwork(bridgeNetType, "testnetwork", option, netOption)
if err != nil { if err != nil {