From 8c111b5ac8b5b6f38f98bf9c0b9643a86c5d0cb7 Mon Sep 17 00:00:00 2001 From: rabi Date: Thu, 12 Jan 2017 14:29:01 +0530 Subject: [PATCH] Add 'pools' attribute to lbaasv2 loadbalancer This adds 'pools' attribute to OS::Neutron::LBaaS::LoadBalancer. Change-Id: Icac18cfd3630ad41d37ab4149294677074425141 Closes-Bug: #1655303 --- .../resources/openstack/neutron/lbaas/loadbalancer.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/heat/engine/resources/openstack/neutron/lbaas/loadbalancer.py b/heat/engine/resources/openstack/neutron/lbaas/loadbalancer.py index 5590e2d4be..0d53308472 100644 --- a/heat/engine/resources/openstack/neutron/lbaas/loadbalancer.py +++ b/heat/engine/resources/openstack/neutron/lbaas/loadbalancer.py @@ -46,9 +46,9 @@ class LoadBalancer(neutron.NeutronResource): ) ATTRIBUTES = ( - VIP_ADDRESS_ATTR, VIP_PORT_ATTR, VIP_SUBNET_ATTR + VIP_ADDRESS_ATTR, VIP_PORT_ATTR, VIP_SUBNET_ATTR, POOLS_ATTR ) = ( - 'vip_address', 'vip_port_id', 'vip_subnet_id' + 'vip_address', 'vip_port_id', 'vip_subnet_id', 'pools' ) properties_schema = { @@ -115,7 +115,12 @@ class LoadBalancer(neutron.NeutronResource): VIP_SUBNET_ATTR: attributes.Schema( _('The VIP subnet of the LoadBalancer.'), type=attributes.Schema.STRING - ) + ), + POOLS_ATTR: attributes.Schema( + _('Pools this LoadBalancer is associated with.'), + type=attributes.Schema.LIST, + support_status=support.SupportStatus(version='9.0.0') + ), } def translation_rules(self, props):