The networking_cisco.plugins.cisco.device_manager.scheduler.hosting_device_cfg_agent_scheduler Module

class networking_cisco.plugins.cisco.device_manager.scheduler.hosting_device_cfg_agent_scheduler.HostingDeviceCfgAgentScheduler

Bases: object

A scheduler for Cisco (hosting) device manager service plugin.

It schedules hosting devices to Cisco cfg agents. The scheduling is a simple random selection among qualified candidates.

auto_schedule_hosting_devices(plugin, context, agent_host)

Schedules unassociated hosting devices to Cisco cfg agent.

Schedules hosting devices to agent running on <agent_host>.

schedule_hosting_device(plugin, context, hosting_device)

Selects Cisco cfg agent that will configure <hosting_device>.

class networking_cisco.plugins.cisco.device_manager.scheduler.hosting_device_cfg_agent_scheduler.StingyHostingDeviceCfgAgentScheduler

Bases: networking_cisco.plugins.cisco.device_manager.scheduler.hosting_device_cfg_agent_scheduler.HostingDeviceCfgAgentScheduler

This scheduler will assign a hosting device to an agent that has the fewest hosting devices associated to it

schedule_hosting_device(plugin, context, hosting_device)