From 24969898114dffc792bfc23a15f60875f4a647cf Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Thu, 22 Aug 2019 09:50:00 +0200 Subject: [PATCH] Add provider_physical_network option to private network The vlan network provider, requires a physical network type, otherwise, it will fail Change-Id: I021015709c8254ff5936ad08d61e1e02ab58c44f --- defaults/main.yml | 3 +++ tasks/tempest_resources.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 2b65152c..acbcd29a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -121,6 +121,9 @@ tempest_private_subnet_name: "private-subnet" tempest_private_subnet_cidr: "192.168.74.0/28" tempest_private_net_provider_type: "vxlan" tempest_private_net_seg_id: 1 +# If you choose vlan as private network provider type, you must set a physical +# name for it +# tempest_private_net_physical_name: "private" # Public network configuration # Currently supports 2 types diff --git a/tasks/tempest_resources.yml b/tasks/tempest_resources.yml index 37d7adf3..f66d3e13 100644 --- a/tasks/tempest_resources.yml +++ b/tasks/tempest_resources.yml @@ -150,6 +150,7 @@ validate_certs: "{{ tempest_keystone_interface_insecure | ternary(false, true) }}" name: "{{ tempest_private_net_name }}" provider_network_type: "{{ tempest_private_net_provider_type }}" + provider_physical_network: "{{ tempest_private_net_physical_name | default(omit) }}" provider_segmentation_id: "{{ tempest_private_net_seg_id | default(omit, true) }}" project: "{{ keystone_demo_tenant_id }}" register: tempest_private_network