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

Class Resource

source code

   object --+    
            |    
base.Resource --+
                |
               Resource

Resource class for LB Pools in Networking V2 API

Instance Methods [hide private]
None
update(self, name='__UNDEF__', lb_method='__UNDEF__')
Update properties of a load balancer pool
source code
None
add_health_monitor(self, health_monitor=None)
Add a health monitor to a pool
source code
None
remove_health_monitor(self, health_monitor=None)
Remove a health monitor from a pool
source code

Inherited from base.Resource: __enter__, __eq__, __exit__, __getattr__, __init__, __ne__, __repr__, __str__, delete, get_attrs, get_id, reload, wait_for_finished

Inherited from base.Resource (private): _clear_attrs, _set_attrs

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

Class Variables [hide private]
  _sub_manager_list = {'member': <class 'yakumo.neutron.v2.lb.me...

Inherited from base.Resource (private): _attrs, _id, _loaded, _stable_state, _state_attr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

update(self, name='__UNDEF__', lb_method='__UNDEF__')

source code 

Update properties of a load balancer pool

Parameters:
  • name (Pool name (str)) - Pool name (str)
  • lb_method (Load balance method (str)) - Load balance method (str) ('ROUND_ROBIN', 'LEAST_CONNECTIONS' or 'SOURCE_IP')
Returns: None
Overrides: base.Resource.update

add_health_monitor(self, health_monitor=None)

source code 

Add a health monitor to a pool

Parameters:
  • health_monitor (yakumo.neutron.v2.lb.health_monitor.Resource) - Health monitor
Returns: None

remove_health_monitor(self, health_monitor=None)

source code 

Remove a health monitor from a pool

Parameters:
  • health_monitor (yakumo.neutron.v2.lb.health_monitor.Resource) - Health monitor
Returns: None

Class Variable Details [hide private]

_sub_manager_list

Value:
{'member': <class 'yakumo.neutron.v2.lb.member.Manager'>,
 'vip': <class 'yakumo.neutron.v2.lb.vip.Manager'>}