The networking_cisco.plugins.cisco.db.scheduler.l3_routertype_aware_schedulers_db Module

class networking_cisco.plugins.cisco.db.scheduler.l3_routertype_aware_schedulers_db.L3RouterTypeAwareSchedulerDbMixin

Bases: neutron.db.l3_agentschedulers_db.L3AgentSchedulerDbMixin

Mixin class to add L3 router type-aware scheduler capability.

This class can schedule Neutron routers to hosting devices and to L3 agents on network nodes.

add_router_to_hosting_device(context, hosting_device_id, router_id)

Add a (non-hosted) router to a hosting device.

cfg_list_router_ids_on_host(context, host, router_ids=None, hosting_device_ids=None)
get_active_routers_for_host(context, host)
get_hosts_for_routers(context, routers, admin_state_up=None, check_active=False)
list_active_sync_routers_on_hosting_devices(context, host, router_ids=None, hosting_device_ids=None)
list_all_routers_on_hosting_devices(context)
list_hosting_devices_hosting_router(context, router_id)
list_routers_on_hosting_device(context, hosting_device_id)
remove_router_from_hosting_device(context, hosting_device_id, router_id)

Remove the router from hosting device.

After removal, the router will be non-hosted until there is update which leads to re-schedule or be added to another hosting device manually.

validate_hosting_device_router_combination(context, binding_info, hosting_device_id)