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:
parent
31404b26aa
commit
8dc3f3be47
1 changed files with 12 additions and 9 deletions
|
@ -219,6 +219,7 @@ func TestBridge(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
netOption := options.Generic{
|
netOption := options.Generic{
|
||||||
|
netlabel.GenericData: options.Generic{
|
||||||
"BridgeName": bridgeName,
|
"BridgeName": bridgeName,
|
||||||
"AddressIPv4": subnet,
|
"AddressIPv4": subnet,
|
||||||
"FixedCIDR": cidr,
|
"FixedCIDR": cidr,
|
||||||
|
@ -227,7 +228,9 @@ func TestBridge(t *testing.T) {
|
||||||
"EnableIPTables": true,
|
"EnableIPTables": true,
|
||||||
"EnableIPMasquerade": true,
|
"EnableIPMasquerade": true,
|
||||||
"EnableICC": true,
|
"EnableICC": true,
|
||||||
"AllowNonDefaultBridge": true}
|
"AllowNonDefaultBridge": true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
network, err := createTestNetwork(bridgeNetType, "testnetwork", option, netOption)
|
network, err := createTestNetwork(bridgeNetType, "testnetwork", option, netOption)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue