Class NeutronSFCPortPairsNorthbound
- java.lang.Object
-
- org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound<NeutronSFCPortPair,NeutronSFCPortPairRequest,INeutronSFCPortPairCRUD>
-
- org.opendaylight.neutron.northbound.api.NeutronSFCPortPairsNorthbound
-
@Singleton @Path("/sfc/portpairs") public final class NeutronSFCPortPairsNorthbound extends AbstractNeutronNorthbound<NeutronSFCPortPair,NeutronSFCPortPairRequest,INeutronSFCPortPairCRUD>
Neutron Northbound REST APIs for OpenStack SFC Port Pair.
-
-
Field Summary
-
Fields inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
HTTP_OK_BOTTOM, HTTP_OK_TOP
-
-
Constructor Summary
Constructors Constructor Description NeutronSFCPortPairsNorthbound(INeutronSFCPortPairCRUD neutronCRUD)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createSFCPortPair(NeutronSFCPortPairRequest input)
Creates new SFC Port Pair.javax.ws.rs.core.Response
deleteSFCPortPair(String sfcPortPairUUID)
Deletes the SFC Port Pair.protected String
getResourceName()
javax.ws.rs.core.Response
listSFCPortPairs(List<String> fields, String queryID, String queryName, String queryTenantID, String queryIngressPort, String queryEgressPort)
Returns a list of all SFC Port Pairs.javax.ws.rs.core.Response
showSFCPortPair(String sfcPortPairUUID, List<String> fields)
Returns a specific SFC Port Pair.protected void
updateDelta(String uuid, NeutronSFCPortPair delta, NeutronSFCPortPair original)
javax.ws.rs.core.Response
updateSFCPortPair(String sfcPortPairUUID, NeutronSFCPortPairRequest input)
Updates an existing SFC Port Pair.-
Methods inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
create, delete, getNeutronCRUD, serviceUnavailable, show, update, uuidNoExist
-
-
-
-
Constructor Detail
-
NeutronSFCPortPairsNorthbound
@Inject public NeutronSFCPortPairsNorthbound(INeutronSFCPortPairCRUD neutronCRUD)
-
-
Method Detail
-
getResourceName
protected String getResourceName()
- Specified by:
getResourceName
in classAbstractNeutronNorthbound<NeutronSFCPortPair,NeutronSFCPortPairRequest,INeutronSFCPortPairCRUD>
-
listSFCPortPairs
@GET @Produces("application/json") public javax.ws.rs.core.Response listSFCPortPairs(@QueryParam("fields") List<String> fields, @QueryParam("id") String queryID, @QueryParam("name") String queryName, @QueryParam("tenant_id") String queryTenantID, @QueryParam("ingress") String queryIngressPort, @QueryParam("egress") String queryEgressPort)
Returns a list of all SFC Port Pairs.
-
showSFCPortPair
@Path("{portPairUUID}") @GET @Produces("application/json") public javax.ws.rs.core.Response showSFCPortPair(@PathParam("portPairUUID") String sfcPortPairUUID, @QueryParam("fields") List<String> fields)
Returns a specific SFC Port Pair.
-
createSFCPortPair
@POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createSFCPortPair(NeutronSFCPortPairRequest input)
Creates new SFC Port Pair.
-
updateDelta
protected void updateDelta(String uuid, NeutronSFCPortPair delta, NeutronSFCPortPair original)
- Overrides:
updateDelta
in classAbstractNeutronNorthbound<NeutronSFCPortPair,NeutronSFCPortPairRequest,INeutronSFCPortPairCRUD>
-
updateSFCPortPair
@Path("{portPairUUID}") @PUT @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateSFCPortPair(@PathParam("portPairUUID") String sfcPortPairUUID, NeutronSFCPortPairRequest input)
Updates an existing SFC Port Pair.
-
deleteSFCPortPair
@Path("{portPairUUID}") @DELETE public javax.ws.rs.core.Response deleteSFCPortPair(@PathParam("portPairUUID") String sfcPortPairUUID)
Deletes the SFC Port Pair.
-
-