Class AgentServiceImpl

    • Constructor Detail

      • AgentServiceImpl

        public AgentServiceImpl()
    • Method Detail

      • list

        public List<? extends Agent> list()
        Description copied from interface: AgentService
        List neutron agents.
        Specified by:
        list in interface AgentService
        Returns:
        a list of available neutron agents
      • getAgent

        public Agent getAgent​(String agentId)
        Description copied from interface: AgentService
        Returns the agent with agentId.
        Specified by:
        getAgent in interface AgentService
        Parameters:
        agentId - id of agent
        Returns:
        agent
      • setAdminStateUp

        public Agent setAdminStateUp​(String agentId,
                                     boolean state)
        Description copied from interface: AgentService
        Sets the admin_state_up.
        Specified by:
        setAdminStateUp in interface AgentService
        Parameters:
        agentId - the id of the agent to set state for
        state - the state to set
        Returns:
        a new reference to the updated agent
      • attachNetworkToDhcpAgent

        public ActionResponse attachNetworkToDhcpAgent​(String agentId,
                                                       String networkId)
        Description copied from interface: AgentService
        Schedules the network to that the specified DHCP agent.
        Specified by:
        attachNetworkToDhcpAgent in interface AgentService
        Parameters:
        agentId - the id of agent with type DHCP
        networkId - the id of network
        Returns:
        the action response
      • detachNetworkToDhcpAgent

        public ActionResponse detachNetworkToDhcpAgent​(String agentId,
                                                       String networkId)
        Description copied from interface: AgentService
        Removes the network from that the specified DHCP agent.
        Specified by:
        detachNetworkToDhcpAgent in interface AgentService
        Parameters:
        agentId - the id of agent with type DHCP
        networkId - the id of network
        Returns:
        the action response