Bugfix: Only add keyword "external_network" to the first network 25/17625/3
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Wed, 27 Jul 2016 12:48:55 +0000 (20:48 +0800)
committerwu.zhihui <wu.zhihui1@zte.com.cn>
Thu, 28 Jul 2016 05:54:58 +0000 (13:54 +0800)
commit2f5b58d700201a259c686d05b7f0c5a8814d6e1f
tree031792ba8fbf1319d743ef5bbcad805d009987e5
parent9e7b73ae4ee804e2647caad8278597e201e301d0
Bugfix: Only add keyword "external_network" to the first network

In test case yaml file, when vm need three networks and enable
floating ip true, it should only add keyword "external_network"
to the first one.

'networks': {'test': {'cidr': '10.0.1.0/24', 'external_network':
'admin_floating_net'}, 'test3': {'cidr': '10.0.3.0/24'},
'test2': {'cidr': '10.0.2.0/24'}}

JIRA:YARDSTICK-309

Change-Id: I1126955749b598b8c5460ac75843c1939b4f8443
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
yardstick/benchmark/contexts/model.py
yardstick/cmd/commands/task.py