octavia.api.handlers.controller_simulator package

octavia.api.handlers.controller_simulator package

Submodules

octavia.api.handlers.controller_simulator.handler module

This is just a handler that will simulate successful operations a controller should perform. There is nothing useful about this other than database entity status management.

class HealthMonitorHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(pool_id)[source]
delete(pool_id)[source]
update(old_health_monitor, health_monitor)[source]
exception InvalidHandlerInputObject(**kwargs)[source]

Bases: exceptions.Exception

message = 'Invalid Input Object %(obj_type)'
class L7PolicyHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(l7policy_id)[source]
delete(l7policy_id)[source]
update(old_l7policy, l7policy)[source]
class L7RuleHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(l7rule)[source]
delete(l7rule)[source]
update(old_l7rule, l7rule)[source]
class ListenerHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(listener_id)[source]
delete(listener_id)[source]
update(old_listener, listener)[source]
class LoadBalancerHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(load_balancer_id)[source]
delete(load_balancer_id)[source]
update(old_lb, load_balancer)[source]
class MemberHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(member_id)[source]
delete(member_id)[source]
update(old_member, member)[source]
class PoolHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseObjectHandler

create(pool_id)[source]
delete(pool_id)[source]
update(old_pool, pool)[source]
class SimulatedControllerHandler[source]

Bases: octavia.api.handlers.abstract_handler.BaseHandler

Handler that simulates database calls of a successful controller.

health_monitor = <octavia.api.handlers.controller_simulator.handler.HealthMonitorHandler object>
l7policy = <octavia.api.handlers.controller_simulator.handler.L7PolicyHandler object>
l7rule = <octavia.api.handlers.controller_simulator.handler.L7RuleHandler object>
listener = <octavia.api.handlers.controller_simulator.handler.ListenerHandler object>
load_balancer = <octavia.api.handlers.controller_simulator.handler.LoadBalancerHandler object>
member = <octavia.api.handlers.controller_simulator.handler.MemberHandler object>
pool = <octavia.api.handlers.controller_simulator.handler.PoolHandler object>
simulate_controller(data_model, delete=False, update=False, create=False)[source]

Simulates a successful controller operator for a data model.

Parameters:
  • data_model – data model to simulate controller operation
  • delete – deletes from the database
validate_input(expected, actual)[source]

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.