netcreate-boot: Create an optional enable_dhcp argument

The argument is used when creating subnet to enabled DHCP.

Change-Id: I690ae3029c762a1f94e94ee8bb1b06c589b90657
This commit is contained in:
Jakub Libosvar 2016-12-14 18:35:26 +01:00
parent 1d8f900c4f
commit cad6e67aed
2 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,7 @@ rally:
scenarios:
- name: netcreate-boot
enabled: true
enable_dhcp: true
image_name: cirros
flavor_name: m1.tiny
file: rally/rally-plugins/netcreate-boot/netcreate_boot.yml

View File

@ -2,6 +2,7 @@
{% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %}
{% set num_networks = num_networks or 1 %}
{% set enable_dhcp = enable_dhcp or true %}
---
BrowbeatPlugin.create_network_nova_boot:
-
@ -11,6 +12,7 @@ BrowbeatPlugin.create_network_nova_boot:
image:
name: '{{image_name}}'
network_create_args: {}
subnet_create_args: {'enable_dhcp': '{{enable_dhcp}}'}
num_networks: {{num_networks}}
runner:
concurrency: {{concurrency}}