def schedule_hosting_device(self, plugin, context, hosting_device):
active_cfg_agents = plugin.get_cfg_agents(context, active=True)<EOL>if not active_cfg_agents:<EOL><INDENT>LOG.warning('<STR_LIT>')<EOL>return<EOL><DEDENT>LOG.debug('<STR_LIT>' %<EOL>len(active_cfg_agents))<EOL>return random.choice(active_cfg_agents)<EOL>
Selects Cisco cfg agent that will configure <hosting_device>.