* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronBgpvpn;
/**
- * Neutron Northbound REST APIs for Bgpvpn.<br>
- * This class provides REST APIs for managing neutron Bgpvpns
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for Bgpvpn.
*/
-
@Path("/bgpvpns")
public final class NeutronBgpvpnsNorthbound
extends AbstractNeutronNorthbound<NeutronBgpvpn, NeutronBgpvpnRequest, INeutronBgpvpnCRUD> {
+ private static final String RESOURCE_NAME = "Bgpvpn";
+
@Context
UriInfo uriInfo;
- private static final String RESOURCE_NAME = "Bgpvpn";
-
@Override
protected String getResourceName() {
return RESOURCE_NAME;
/**
* Returns a list of all Bgpvpns.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackBgpvpns.class)
/**
* Returns a specific Bgpvpn.
*/
-
@Path("{bgpvpnUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Bgpvpn.
*/
-
@Path("{bgpvpnUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronFirewall;
/**
- * Neutron Northbound REST APIs for Firewall.<br>
- * This class provides REST APIs for managing neutron Firewall
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for Firewall.
*/
@Path("/fw/firewalls")
public final class NeutronFirewallNorthbound
/**
* Returns a specific Firewall.
*/
-
@Path("{firewallUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Firewall.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Updates a Firewall.
*/
-
@Path("{firewallUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Firewall.
*/
-
@Path("{firewallUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronFirewallPolicy;
/**
- * Neutron Northbound REST APIs for Firewall Policies.<br>
- * This class provides REST APIs for managing neutron Firewall Policies
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for Firewall Policies.
*/
@Path("/fw/firewall_policies")
public final class NeutronFirewallPolicyNorthbound extends
/**
* Returns a specific Firewall Policy.
*/
-
@Path("{firewallPolicyUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Firewall Policy.
- * */
+ */
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Deletes a Firewall Policy.
*/
-
@Path("{firewallPolicyUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronFirewallRule;
/**
- * Neutron Northbound REST APIs for Firewall Rule.<br>
- * This class provides REST APIs for managing neutron Firewall Rule
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
+ * Neutron Northbound REST APIs for Firewall Rule.
*/
-
@Path("fw/firewall_rules")
public final class NeutronFirewallRulesNorthbound
extends AbstractNeutronNorthbound<NeutronFirewallRule, NeutronFirewallRuleRequest, INeutronFirewallRuleCRUD> {
+
private static final String RESOURCE_NAME = "Firewall Rule";
@Override
/**
* Returns a specific Firewall Rule.
*/
-
@Path("{firewallRuleUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Firewall Rule.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Deletes a Firewall Rule.
*/
-
@Path("{firewallRuleUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronFloatingIp;
/**
- * Neutron Northbound REST APIs.<br>
- * This class provides REST APIs for managing Neutron Floating IPs
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for managing Neutron Floating IPs.
*/
-
@Path("/floatingips")
public final class NeutronFloatingIpsNorthbound
extends AbstractNeutronNorthbound<NeutronFloatingIp, NeutronFloatingIpRequest, INeutronFloatingIpCRUD> {
+
private static final String RESOURCE_NAME = "Floating IP";
@Override
/**
* Returns a list of all FloatingIps.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific FloatingIp.
*/
-
@Path("{floatingipUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new FloatingIps.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Updates a FloatingIp.
*/
-
@Path("{floatingipUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a FloatingIp.
*/
-
@Path("{floatingipUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.slf4j.LoggerFactory;
/**
- * Neutron Northbound REST APIs for L2 gateway Connection.<br>
- * This class provides REST APIs for managing L2 gateway Connection
- * * *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
+ * Neutron Northbound REST APIs for L2 gateway Connection.
*/
-
@Path("/l2gateway-connections")
public final class NeutronL2gatewayConnectionNorthbound extends AbstractNeutronNorthbound<NeutronL2gatewayConnection,
NeutronL2gatewayConnectionRequest, INeutronL2gatewayConnectionCRUD> {
- static final Logger LOG = LoggerFactory.getLogger(NeutronL2gatewayConnectionNorthbound.class);
+ private static final Logger LOG = LoggerFactory.getLogger(NeutronL2gatewayConnectionNorthbound.class);
private static final String RESOURCE_NAME = "L2gatewayConnection";
/**
* Returns a list of all L2gateway Connections.
- *
*/
@GET
@Produces({ MediaType.APPLICATION_JSON })
&& (queryConnectionID == null || queryConnectionID.equals(connection.getID()))
&& (queryL2gatewayID == null || queryL2gatewayID.equals(connection.getL2gatewayID()))
&& (queryNetworkID == null || queryNetworkID.equals(connection.getNetworkID()))
- && (querySegmentID == null || (Integer.valueOf(querySegmentID).equals(connection.getSegmentID())))
+ && (querySegmentID == null || Integer.valueOf(querySegmentID).equals(connection.getSegmentID()))
&& (queryPortID == null || queryPortID.equals(connection.getPortID()))) {
if (fields.size() > 0) {
ans.add(connection.extractFields(fields));
import org.slf4j.LoggerFactory;
/**
- * Neutron Northbound REST APIs for L2 gateway.<br>
- * This class provides REST APIs for managing L2 gateway
- * *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
+ * Neutron Northbound REST APIs for L2 gateway.
*/
-
@Path("/l2-gateways")
public final class NeutronL2gatewayNorthbound
extends AbstractNeutronNorthbound<NeutronL2gateway, NeutronL2gatewayRequest, INeutronL2gatewayCRUD> {
- static final Logger LOG = LoggerFactory.getLogger(NeutronL2gatewayNorthbound.class);
+
+ private static final Logger LOG = LoggerFactory.getLogger(NeutronL2gatewayNorthbound.class);
private static final String RESOURCE_NAME = "L2gateway";
@ResponseCode(code = HttpURLConnection.HTTP_CONFLICT, condition = "Conflict"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-
public Response createL2gateway(final NeutronL2gatewayRequest input) {
LOG.debug("CreateL2gateway NeutronL2gatewayRequest");
return create(input);
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronLoadBalancerHealthMonitor;
/**
- * Neutron Northbound REST APIs for Load Balancer HealthMonitor.<br>
- * This class provides REST APIs for managing neutron LoadBalancerHealthMonitor
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
+ * Neutron Northbound REST APIs for Load Balancer HealthMonitor.
*
*/
@Path("/lbaas/healthmonitors")
@ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-
public Response listGroups(
// return fields
@QueryParam("fields") List<String> fields,
/**
* Returns a specific LoadBalancerHealthMonitor.
*/
-
@Path("{loadBalancerHealthMonitorID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new LoadBalancerHealthMonitor.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Deletes a LoadBalancerHealthMonitor.
- * */
+ */
@Path("{loadBalancerHealthMonitorID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronLoadBalancerListener;
/**
- * Neutron Northbound REST APIs for LoadBalancerListener Policies.<br>
- * This class provides REST APIs for managing neutron LoadBalancerListener Policies
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for LoadBalancerListener Policies.
*/
@Path("/lbaas/listeners")
public final class NeutronLoadBalancerListenerNorthbound extends AbstractNeutronNorthbound<NeutronLoadBalancerListener,
@ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-
public Response listGroups(
// return fields
@QueryParam("fields") List<String> fields,
/**
* Returns a specific LoadBalancerListener.
*/
-
@Path("{loadBalancerListenerID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new LoadBalancerListener.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Deletes a LoadBalancerListener.
*/
-
@Path("{loadBalancerListenerID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
/**
* Neutron Northbound REST APIs for LoadBalancers.<br>
- * This class provides REST APIs for managing neutron LoadBalancers
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
*/
@Path("/lbaas/loadbalancers")
public final class NeutronLoadBalancerNorthbound
@ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-
public Response listGroups(
// return fields
@QueryParam("fields") List<String> fields,
/**
* Returns a specific LoadBalancer.
*/
-
@Path("{loadBalancerID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
-
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
/**
* Creates new LoadBalancer.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
-
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response createLoadBalancers(final NeutronLoadBalancerRequest input) {
@PUT
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
-
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
/**
* Deletes a LoadBalancer.
*/
-
@Path("{loadBalancerID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember;
/**
- * Neutron Northbound REST APIs for LoadBalancerPool Policies.<br>
- * This class provides REST APIs for managing neutron LoadBalancerPool Policies
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
+ * Neutron Northbound REST APIs for LoadBalancerPool Policies.
*
- */
-
-/**
- * For now, the LB pool member data is maintained with the INeutronLoadBalancerPoolCRUD,
+ * <p>For now, the LB pool member data is maintained with the INeutronLoadBalancerPoolCRUD,
* and not duplicated within the INeutronLoadBalancerPoolMemberCRUD's cache.
*/
-
@Path("/lbaas/pools")
public final class NeutronLoadBalancerPoolNorthbound extends AbstractNeutronNorthbound<NeutronLoadBalancerPool,
NeutronLoadBalancerPoolRequest, INeutronLoadBalancerPoolCRUD> {
@ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-
public Response listGroups(
// return fields
@QueryParam("fields") List<String> fields,
/**
* Returns a specific LoadBalancerPool.
*/
-
@Path("{loadBalancerPoolID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new LoadBalancerPool.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Deletes a LoadBalancerPool.
*/
-
@Path("{loadBalancerPoolUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
/**
* Updates a LB member pool.
*/
-
@Path("{loadBalancerPoolUUID}/members/{loadBalancerPoolMemberUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a LoadBalancerPoolMember.
*/
-
@Path("{loadBalancerPoolUUID}/members/{loadBalancerPoolMemberUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
/**
* Neutron Northbound REST APIs for Metering Lable Rules.<br>
- * This class provides REST APIs for managing neutron metering label rules
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
*/
-
@Path("/metering/metering-label-rules")
public final class NeutronMeteringLabelRulesNorthbound extends AbstractNeutronNorthbound<NeutronMeteringLabelRule,
NeutronMeteringLabelRuleRequest, INeutronMeteringLabelRuleCRUD> {
+
private static final String RESOURCE_NAME = "Metering Label Rule";
@Override
/**
* Returns a list of all metering label rules.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackNetworks.class)
/**
* Returns a specific metering label rule.
*/
-
@Path("{ruleUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Metering Label rule.
*/
-
@Path("{ruleUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronMeteringLabel;
/**
- * Neutron Northbound REST APIs for Metering Lables.<br>
- * This class provides REST APIs for managing neutron metering labels
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for Metering Lables.
*/
-
@Path("/metering/metering-labels")
public final class NeutronMeteringLabelsNorthbound extends
AbstractNeutronNorthbound<NeutronMeteringLabel, NeutronMeteringLabelRequest, INeutronMeteringLabelCRUD> {
+
private static final String RESOURCE_NAME = "Metering Label";
@Override
/**
* Returns a list of all metering labels.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackNetworks.class)
/**
* Returns a specific metering label.
*/
-
@Path("{labelUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Metering Label.
*/
-
@Path("{labelUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronNetwork;
/**
- * Neutron Northbound REST APIs for Network.<br>
- * This class provides REST APIs for managing neutron Networks
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for Network.
*/
-
@Path("/networks")
public final class NeutronNetworksNorthbound
extends AbstractNeutronNorthbound<NeutronNetwork, NeutronNetworkRequest, INeutronNetworkCRUD> {
+ private static final String RESOURCE_NAME = "Network";
+
@Context
UriInfo uriInfo;
- private static final String RESOURCE_NAME = "Network";
-
@Override
protected String getResourceName() {
return RESOURCE_NAME;
/**
* Returns a list of all Networks.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackNetworks.class)
/**
* Returns a specific Network.
*/
-
@Path("{netUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Network.
*/
-
@Path("{netUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronPort;
/**
- * Neutron Northbound REST APIs.<br>
- * This class provides REST APIs for managing neutron port objects
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for managing neutron port objects.
*/
-
@Path("/ports")
public final class NeutronPortsNorthbound
extends AbstractNeutronNorthbound<NeutronPort, NeutronPortRequest, INeutronPortCRUD> {
/**
* Returns a list of all Ports.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackPorts.class)
/**
* Returns a specific Port.
*/
-
@Path("{portUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Ports.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Updates a Port.
*/
-
@Path("{portUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Port.
*/
-
@Path("{portUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronRouterInterface;
/**
- * Neutron Northbound REST APIs.<br>
- * This class provides REST APIs for managing neutron routers
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for managing neutron routers.
*/
-
@Path("/routers")
public final class NeutronRoutersNorthbound
extends AbstractNeutronNorthbound<NeutronRouter, NeutronRouterRequest, INeutronRouterCRUD> {
- static final String ROUTER_INTERFACE_STR = "network:router_interface";
- static final String ROUTER_GATEWAY_STR = "network:router_gateway";
+
private static final String RESOURCE_NAME = "Router";
@Override
/**
* Returns a list of all Routers.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackRouters.class)
/**
* Returns a specific Router.
*/
-
@Path("{routerUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Routers.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Updates a Router.
*/
-
@Path("{routerUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Router.
*/
-
@Path("{routerUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
/**
* Adds an interface to a router.
*/
-
@Path("{routerUUID}/add_router_interface")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
import org.opendaylight.neutron.spi.NeutronSFCFlowClassifier;
/**
- * Neutron Northbound REST APIs for OpenStack SFC Flow Classifier.<br>
- * This class provides REST APIs for managing OpenStack SFC Flow Classifier
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for OpenStack SFC Flow Classifier.
*/
-
@Path("/sfc/flowclassifiers")
public final class NeutronSFCFlowClassifiersNorthbound extends AbstractNeutronNorthbound<NeutronSFCFlowClassifier,
NeutronSFCFlowClassifierRequest, INeutronSFCFlowClassifierCRUD> {
+
private static final String RESOURCE_NAME = "Sfc Flow Classifier";
@Override
/**
* Returns a list of all SFC Flow Classifiers.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific SFC Flow Classifier.
*/
-
@Path("{flowClassifierUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@Override
protected void updateDelta(String uuid, NeutronSFCFlowClassifier delta, NeutronSFCFlowClassifier original) {
/*
- * note: what we get appears to not be a delta but
+ * note: what we get appears to not be a delta but
* rather an incomplete updated object. So we need to set
* the ID to complete the object and then send that down
* for folks to check
*/
-
delta.setID(uuid);
delta.setTenantID(original.getTenantID());
}
import org.opendaylight.neutron.spi.NeutronSFCPortChain;
/**
- * Neutron Northbound REST APIs for OpenStack SFC Port Chain.<br>
- * This class provides REST APIs for managing OpenStack SFC Port Chain
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for OpenStack SFC Port Chain.
*/
-
@Path("/sfc/portchains")
public final class NeutronSFCPortChainsNorthbound
extends AbstractNeutronNorthbound<NeutronSFCPortChain, NeutronSFCPortChainRequest, INeutronSFCPortChainCRUD> {
/**
* Returns a list of all SFC Port Chains.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific SFC Port Chain.
*/
-
@Path("{portChainUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@Override
protected void updateDelta(String uuid, NeutronSFCPortChain delta, NeutronSFCPortChain original) {
/*
- * note: what we get appears to not be a delta but
+ * note: what we get appears to not be a delta but
* rather an incomplete updated object. So we need to set
* the ID to complete the object and then send that down
* for folks to check
*/
-
delta.setID(uuid);
delta.setTenantID(original.getTenantID());
}
import org.opendaylight.neutron.spi.NeutronSFCPortPairGroup;
/**
- * Neutron Northbound REST APIs for OpenStack SFC Port Pair.<br>
- * This class provides REST APIs for managing OpenStack SFC Port Pair
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for OpenStack SFC Port Pair.
*/
-
@Path("/sfc/portpairgroups")
public final class NeutronSFCPortPairGroupsNorthbound extends AbstractNeutronNorthbound<NeutronSFCPortPairGroup,
NeutronSFCPortPairGroupRequest, INeutronSFCPortPairGroupCRUD> {
/**
* Returns a list of all SFC Port Pair Groups.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific SFC Port Pair Group.
*/
-
@Path("{portPairGroupUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@Override
protected void updateDelta(String uuid, NeutronSFCPortPairGroup delta, NeutronSFCPortPairGroup original) {
/*
- * note: what we get appears to not be a delta but
+ * Note: what we get appears to not be a delta but
* rather an incomplete updated object. So we need to set
* the ID to complete the object and then send that down
* for folks to check
*/
-
delta.setID(uuid);
delta.setTenantID(original.getTenantID());
}
/**
* Deletes the SFC Port Pair Group.
*/
-
@Path("{portPairGroupUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
import org.opendaylight.neutron.spi.NeutronSFCPortPair;
/**
- * Neutron Northbound REST APIs for OpenStack SFC Port Pair.<br>
- * This class provides REST APIs for managing OpenStack SFC Port Pair
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for OpenStack SFC Port Pair.
*/
-
@Path("/sfc/portpairs")
public final class NeutronSFCPortPairsNorthbound
extends AbstractNeutronNorthbound<NeutronSFCPortPair, NeutronSFCPortPairRequest, INeutronSFCPortPairCRUD> {
/**
* Returns a list of all SFC Port Pairs.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific SFC Port Pair.
*/
-
@Path("{portPairUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes the SFC Port Pair.
*/
-
@Path("{portPairUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@XmlAccessorType(XmlAccessType.NONE)
@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSecurityGroupRequest implements INeutronRequest<NeutronSecurityGroup> {
+
/**
* See OpenStack Network API v2.0 Reference for a
* description of annotated attributes and operations.
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronSecurityGroup;
/**
- * Neutron Northbound REST APIs for Security Group.<br>
- * This class provides REST APIs for managing neutron Security Group
- *
- * <p>
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
+ * Neutron Northbound REST APIs for Security Group.
*/
@Path("/security-groups")
public final class NeutronSecurityGroupsNorthbound extends
AbstractNeutronNorthbound<NeutronSecurityGroup, NeutronSecurityGroupRequest, INeutronSecurityGroupCRUD> {
+
private static final String RESOURCE_NAME = "Security Group";
@Override
@ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
@ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
@ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-
public Response listGroups(
// return fields
@QueryParam("fields") List<String> fields,
/**
* Returns a specific Security Group.
*/
-
@Path("{securityGroupUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Security Group.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Updates a Security Group.
*/
-
@Path("{securityGroupUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Security Group.
*/
-
@Path("{securityGroupUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@XmlAccessorType(XmlAccessType.NONE)
@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSecurityRuleRequest implements INeutronRequest<NeutronSecurityRule> {
+
/**
* See OpenStack Network API v2.0 Reference for a
* description of annotated attributes and operations.
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
/**
* Neutron Northbound REST APIs for Security Rule.<br>
- * This class provides REST APIs for managing neutron Security Rule
- *
- * <p>
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
*/
-
@Path("/security-group-rules")
public final class NeutronSecurityRulesNorthbound
extends AbstractNeutronNorthbound<NeutronSecurityRule, NeutronSecurityRuleRequest, INeutronSecurityRuleCRUD> {
+
private static final String RESOURCE_NAME = "Security Rule";
@Override
/**
* Returns a specific Security Rule.
*/
-
@Path("{securityRuleUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Security Rule.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
/**
* Updates a Security Rule.
*/
-
@Path("{securityRuleUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Security Rule.
*/
-
@Path("{securityRuleUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
/**
* Neutron Northbound REST APIs for Subnets.<br>
- * This class provides REST APIs for managing neutron Subnets
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
*/
-
@Path("/subnets")
public final class NeutronSubnetsNorthbound
extends AbstractNeutronNorthbound<NeutronSubnet, NeutronSubnetRequest, INeutronSubnetCRUD> {
+
private static final String RESOURCE_NAME = "Subnet";
@Override
/**
* Returns a specific Subnet.
*/
-
@Path("{subnetUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Subnets.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
* complete updated object. So, that needs to be sent down to
* folks to check
*/
-
delta.setID(uuid);
delta.setNetworkUUID(original.getNetworkUUID());
delta.setTenantID(original.getTenantID());
/**
* Updates a Subnet.
*/
-
@Path("{subnetUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Subnet.
*/
-
@Path("{subnetUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronVpnIkePolicy;
/**
- * Neutron Northbound REST APIs for VPN IKE Policy.<br>
- * This class provides REST APIs for managing neutron VPN IKE Policies
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for VPN IKE Policy.
*/
-
@Path("/vpn/ikepolicies")
public final class NeutronVpnIkePoliciesNorthbound
extends AbstractNeutronNorthbound<NeutronVpnIkePolicy, NeutronVpnIkePolicyRequest, INeutronVpnIkePolicyCRUD> {
+
private static final String RESOURCE_NAME = "VPNIKEPolicy";
@Override
/**
* Returns a list of all VPN IKE Policies.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific VPN IKE Policy.
*/
-
@Path("{policyID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a VPN IKE Policy.
*/
-
@Path("{policyID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronVpnIpSecPolicy;
/**
- * Neutron Northbound REST APIs for VPN IPSEC Policy.<br>
- * This class provides REST APIs for managing neutron VPN IPSEC Policies
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for VPN IPSEC Policy.
*/
-
@Path("/vpn/ipsecpolicies")
public final class NeutronVpnIpSecPoliciesNorthbound extends
AbstractNeutronNorthbound<NeutronVpnIpSecPolicy, NeutronVpnIpSecPolicyRequest, INeutronVpnIpSecPolicyCRUD> {
/**
* Returns a list of all VPN IPSEC Policies.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific VPN IPSEC Policy.
*/
-
@Path("{policyID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a VPN IPSEC Policy.
*/
-
@Path("{policyID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
/**
* Neutron Northbound REST APIs for VPN IPSEC SiteConnection.<br>
- * This class provides REST APIs for managing neutron VPN IPSEC SiteConnections
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
*/
-
@Path("/vpn/ipsecsiteconnections")
public final class NeutronVpnIpSecSiteConnectionsNorthbound
extends AbstractNeutronNorthbound<NeutronVpnIpSecSiteConnection,
/**
* Returns a list of all VPN IPSEC SiteConnections.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific VPN IPSEC SiteConnection.
*/
-
@Path("{connectionID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a VPN IPSEC SiteConnection.
*/
-
@Path("{connectionID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
import org.opendaylight.neutron.spi.NeutronVpnService;
/**
- * Neutron Northbound REST APIs for VPN Service.<br>
- * This class provides REST APIs for managing neutron VPN Services
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
+ * Neutron Northbound REST APIs for VPN Service.
*/
-
@Path("/vpn/vpnservices")
public final class NeutronVpnServicesNorthbound
extends AbstractNeutronNorthbound<NeutronVpnService, NeutronVpnServiceRequest, INeutronVpnServiceCRUD> {
/**
* Returns a list of all VPN Services.
*/
-
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
/**
* Returns a specific VPN Service.
*/
-
@Path("{serviceID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a VPN Service.
*/
-
@Path("{serviceID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),