mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-05 21:31:37 +00:00
Merge pull request #213 from baoyonglei/bugfix
Fix createTestNetwork bug
This commit is contained in:
+12
-9
@@ -219,15 +219,18 @@ func TestBridge(t *testing.T) {
|
||||
}
|
||||
|
||||
netOption := options.Generic{
|
||||
"BridgeName": bridgeName,
|
||||
"AddressIPv4": subnet,
|
||||
"FixedCIDR": cidr,
|
||||
"FixedCIDRv6": cidrv6,
|
||||
"EnableIPv6": true,
|
||||
"EnableIPTables": true,
|
||||
"EnableIPMasquerade": true,
|
||||
"EnableICC": true,
|
||||
"AllowNonDefaultBridge": true}
|
||||
netlabel.GenericData: options.Generic{
|
||||
"BridgeName": bridgeName,
|
||||
"AddressIPv4": subnet,
|
||||
"FixedCIDR": cidr,
|
||||
"FixedCIDRv6": cidrv6,
|
||||
"EnableIPv6": true,
|
||||
"EnableIPTables": true,
|
||||
"EnableIPMasquerade": true,
|
||||
"EnableICC": true,
|
||||
"AllowNonDefaultBridge": true,
|
||||
},
|
||||
}
|
||||
|
||||
network, err := createTestNetwork(bridgeNetType, "testnetwork", option, netOption)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user