Add 'pools' attribute to lbaasv2 loadbalancer

This adds 'pools' attribute to OS::Neutron::LBaaS::LoadBalancer.

Change-Id: Icac18cfd3630ad41d37ab4149294677074425141
Closes-Bug: #1655303
This commit is contained in:
rabi 2017-01-12 14:29:01 +05:30
parent f4634ca266
commit 8c111b5ac8

View File

@ -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):