Package yakumo :: Package neutron :: Package v2 :: Package lb :: Module pool :: Class Manager
[hide private]
[frames] | no frames]

Class Manager

source code

  object --+    
           |    
base.Manager --+
               |
              Manager

Manager class for LB Pools in Networking V2 API

Nested Classes [hide private]
  resource_class
Resource class for LB Pools in Networking V2 API
Instance Methods [hide private]
yakumo.neutron.v2.lb.pool.Resource
create(self, name='__UNDEF__', description='__UNDEF__', lb_method='__UNDEF__', protocol='__UNDEF__', subnet='__UNDEF__', is_enabled='__UNDEF__')
Create a load balancer pool
source code

Inherited from base.Manager: __init__, find, find_one, get, get_empty, list

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  service_type = 'network'
  _attr_mapping = [('id', 'id', <yakumo.mapper.NoopClass object ...
  _json_resource_key = 'pool'
  _json_resources_key = 'pools'
  _url_resource_path = '/v2.0/lb/pools'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create(self, name='__UNDEF__', description='__UNDEF__', lb_method='__UNDEF__', protocol='__UNDEF__', subnet='__UNDEF__', is_enabled='__UNDEF__')

source code 

Create a load balancer pool

Parameters:
  • name (str) - Pool name
  • description (str) - Description
  • lb_method (str) - Load balancing method ('ROUND_ROBIN', 'LEAST_CONNECTIONS' or 'SOURCE_IP')
  • protocol (str) - 'TCP', 'HTTP' or 'HTTPS'
  • subnet (yakumo.neutron.v2.subnet.Resource) - Subnet
  • is_enabled (bool) - Whether the pool is enabled
Returns: yakumo.neutron.v2.lb.pool.Resource
Created pool
Overrides: base.Manager.create

Class Variable Details [hide private]

_attr_mapping

Value:
[('id', 'id', mapper.Noop), ('name', 'name', mapper.Noop), ('descripti\
on', 'description', mapper.Noop), ('lb_method', 'lb_method', mapper.No\
op), ('protocol', 'protocol', mapper.Noop), ('subnet', 'subnet_id', ma\
pper.Resource('neutron.subnet')), ('project', 'tenant_id', mapper.Reso\
urce('project')), ('health_monitors', 'health_monitors', mapper.List(m\
apper.Resource('neutron.lb.health_monitor'))), ('is_enabled', 'admin_s\
tate_up', mapper.Noop), ('status', 'status', mapper.Noop),]