Beispiel #1
0
 def get_network_agents_data(self):
     try:
         agents = neutron.agent_list(self.tab_group.request)
     except Exception:
         msg = _('Unable to get network agents list.')
         exceptions.handle(self.request, msg)
         agents = []
     return agents
Beispiel #2
0
    def get_network_agents_data(self):
        try:
            agents = neutron.agent_list(self.tab_group.request)
        except Exception:
            msg = _('Unable to get network agents list.')
            exceptions.check_message(["Connection", "refused"], msg)
            raise

        return agents
Beispiel #3
0
    def get_network_agents_data(self):
        try:
            agents = neutron.agent_list(self.tab_group.request)
        except Exception:
            msg = _('Unable to get network agents list.')
            exceptions.check_message(["Connection", "refused"], msg)
            raise

        return agents