From cad6e67aed005ee5450aba3446d6fe28b773d02d Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Wed, 14 Dec 2016 18:35:26 +0100 Subject: [PATCH] netcreate-boot: Create an optional enable_dhcp argument The argument is used when creating subnet to enabled DHCP. Change-Id: I690ae3029c762a1f94e94ee8bb1b06c589b90657 --- browbeat-config.yaml | 1 + rally/rally-plugins/netcreate-boot/netcreate_boot.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/browbeat-config.yaml b/browbeat-config.yaml index 450bd0ced..02c43b7c8 100644 --- a/browbeat-config.yaml +++ b/browbeat-config.yaml @@ -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 diff --git a/rally/rally-plugins/netcreate-boot/netcreate_boot.yml b/rally/rally-plugins/netcreate-boot/netcreate_boot.yml index a63dce93e..81cb9ee5e 100644 --- a/rally/rally-plugins/netcreate-boot/netcreate_boot.yml +++ b/rally/rally-plugins/netcreate-boot/netcreate_boot.yml @@ -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}}