Class NeutronL2gatewayConnectionNorthbound
- java.lang.Object
-
- org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound<NeutronL2gatewayConnection,NeutronL2gatewayConnectionRequest,INeutronL2gatewayConnectionCRUD>
-
- org.opendaylight.neutron.northbound.api.NeutronL2gatewayConnectionNorthbound
-
@Singleton @Path("/l2gateway-connections") public final class NeutronL2gatewayConnectionNorthbound extends AbstractNeutronNorthbound<NeutronL2gatewayConnection,NeutronL2gatewayConnectionRequest,INeutronL2gatewayConnectionCRUD>
Neutron Northbound REST APIs for L2 gateway Connection.
-
-
Field Summary
-
Fields inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
HTTP_OK_BOTTOM, HTTP_OK_TOP
-
-
Constructor Summary
Constructors Constructor Description NeutronL2gatewayConnectionNorthbound(INeutronL2gatewayConnectionCRUD neutronCRUD)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createL2gatewayConnection(NeutronL2gatewayConnectionRequest input)
Creates L2gateway Connection.javax.ws.rs.core.Response
deleteL2gatewayConnection(String l2gatewayConnectionID)
Deletes a L2gateway Connection.protected String
getResourceName()
javax.ws.rs.core.Response
listL2gatewayConnections(List<String> fields, String queryTenantID, String queryConnectionID, String queryL2gatewayID, String queryNetworkID, String querySegmentID, String queryPortID, String limit, String marker, String pageReverse)
Returns a list of all L2gateway Connections.javax.ws.rs.core.Response
showL2gatewayID(String l2gatewayConnectionID, List<String> fields)
Returns a specific L2gateway Connection.-
Methods inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
create, delete, getNeutronCRUD, serviceUnavailable, show, update, updateDelta, uuidNoExist
-
-
-
-
Constructor Detail
-
NeutronL2gatewayConnectionNorthbound
@Inject public NeutronL2gatewayConnectionNorthbound(INeutronL2gatewayConnectionCRUD neutronCRUD)
-
-
Method Detail
-
getResourceName
protected String getResourceName()
-
createL2gatewayConnection
@POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createL2gatewayConnection(NeutronL2gatewayConnectionRequest input)
Creates L2gateway Connection.- Parameters:
input
- contains connection details- Returns:
- status
-
listL2gatewayConnections
@GET @Produces("application/json") public javax.ws.rs.core.Response listL2gatewayConnections(@QueryParam("fields") List<String> fields, @QueryParam("tenant_id") String queryTenantID, @QueryParam("connection_id") String queryConnectionID, @QueryParam("l2gateway_id") String queryL2gatewayID, @QueryParam("network_id") String queryNetworkID, @QueryParam("segment_id") String querySegmentID, @QueryParam("port_id") String queryPortID, @QueryParam("limit") String limit, @QueryParam("marker") String marker, @QueryParam("page_reverse") String pageReverse)
Returns a list of all L2gateway Connections.
-
showL2gatewayID
@Path("{l2gatewayConnectionID}") @GET @Produces("application/json") public javax.ws.rs.core.Response showL2gatewayID(@PathParam("l2gatewayConnectionID") String l2gatewayConnectionID, @QueryParam("fields") List<String> fields)
Returns a specific L2gateway Connection.- Parameters:
l2gatewayConnectionID
- gateway connectID to fetchfields
- attributes used for querying- Returns:
- status
-
deleteL2gatewayConnection
@Path("{l2gatewayConnectionID}") @DELETE public javax.ws.rs.core.Response deleteL2gatewayConnection(@PathParam("l2gatewayConnectionID") String l2gatewayConnectionID)
Deletes a L2gateway Connection.- Parameters:
l2gatewayConnectionID
- connection ID to delete- Returns:
- status
-
-