Example #1
0
 def get_agents(self):
     res = []
     for mido_host in self._midonet_hosts():
         res.append(top.midonet_host_to_neutron_agent(mido_host))
     return res
Example #2
0
 def get_agent(self, agent_id):
     for mido_host in self._midonet_hosts():
         if mido_host.get('id') == id:
             return top.midonet_host_to_neutron_agent(mido_host)
     return None