Interface AgentService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
AgentServiceImpl
public interface AgentService extends RestService
Networking (Neutron) Agent Extension API- Author:
- Yin Zhang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActionResponseattachNetworkToDhcpAgent(String agentId, String networkId)Schedules the network to that the specified DHCP agent.ActionResponsedetachNetworkToDhcpAgent(String agentId, String networkId)Removes the network from that the specified DHCP agent.AgentgetAgent(String agentId)Returns the agent with agentId.List<? extends Agent>list()List neutron agents.AgentsetAdminStateUp(String agentId, boolean state)Sets the admin_state_up.
-
-
-
Method Detail
-
getAgent
Agent getAgent(String agentId)
Returns the agent with agentId.- Parameters:
agentId- id of agent- Returns:
- agent
-
setAdminStateUp
Agent setAdminStateUp(String agentId, boolean state)
Sets the admin_state_up.- Parameters:
agentId- the id of the agent to set state forstate- the state to set- Returns:
- a new reference to the updated agent
-
attachNetworkToDhcpAgent
ActionResponse attachNetworkToDhcpAgent(String agentId, String networkId)
Schedules the network to that the specified DHCP agent.- Parameters:
agentId- the id of agent with type DHCPnetworkId- the id of network- Returns:
- the action response
-
detachNetworkToDhcpAgent
ActionResponse detachNetworkToDhcpAgent(String agentId, String networkId)
Removes the network from that the specified DHCP agent.- Parameters:
agentId- the id of agent with type DHCPnetworkId- the id of network- Returns:
- the action response
-
-