This Page

The quantum.scheduler.l3_agent_scheduler Module

class quantum.scheduler.l3_agent_scheduler.ChanceScheduler

Bases: object

Allocate a L3 agent for a router in a random way. More sophisticated scheduler (similar to filter scheduler in nova?) can be introduced later.

auto_schedule_routers(plugin, context, host, router_id)

Schedule non-hosted routers to L3 Agent running on host. If router_id is given, only this router is scheduled if it is not hosted yet. Don’t schedule the routers which are hosted already by active l3 agents.

schedule(plugin, context, sync_router)

Schedule the router to an active L3 agent if there is no enable L3 agent hosting it.