Jakub Libosvar cad6e67aed netcreate-boot: Create an optional enable_dhcp argument
The argument is used when creating subnet to enabled DHCP.

Change-Id: I690ae3029c762a1f94e94ee8bb1b06c589b90657
2016-12-14 18:55:56 +01:00

40 lines
1.0 KiB
YAML

{% set sla_max_avg_duration = sla_max_avg_duration or 60 %}
{% 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:
-
args:
flavor:
name: '{{flavor_name}}'
image:
name: '{{image_name}}'
network_create_args: {}
subnet_create_args: {'enable_dhcp': '{{enable_dhcp}}'}
num_networks: {{num_networks}}
runner:
concurrency: {{concurrency}}
times: {{times}}
type: "constant"
context:
users:
tenants: 1
users_per_tenant: 8
quotas:
neutron:
network: -1
port: -1
router: -1
subnet: -1
nova:
instances: -1
cores: -1
ram: -1
sla:
max_avg_duration: {{sla_max_avg_duration}}
max_seconds_per_iteration: {{sla_max_seconds}}
failure_rate:
max: {{sla_max_failure}}