Merge "Add 'pools' attribute to lbaasv2 loadbalancer"

changes/70/393370/7
Jenkins 2017-03-23 08:20:21 +00:00 committed by Gerrit Code Review
commit 4513777bfc
1 changed files with 8 additions and 3 deletions

View File

@ -48,9 +48,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 = {
@ -117,7 +117,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):