import org.opendaylight.controller.networkconfig.neutron.INeutronNetworkCRUD;\r
import org.opendaylight.controller.networkconfig.neutron.INeutronSubnetAware;\r
import org.opendaylight.controller.networkconfig.neutron.INeutronSubnetCRUD;\r
+import org.opendaylight.controller.networkconfig.neutron.NeutronCRUDInterfaces;\r
import org.opendaylight.controller.networkconfig.neutron.NeutronSubnet;\r
import org.opendaylight.controller.northbound.commons.RestMessages;\r
import org.opendaylight.controller.northbound.commons.exception.ServiceUnavailableException;\r
@QueryParam("page_reverse") String pageReverse\r
// sorting not supported\r
) {\r
- INeutronSubnetCRUD subnetInterface = NeutronNBInterfaces.getIfNBSubnetCRUD("default", this);\r
+ INeutronSubnetCRUD subnetInterface = NeutronCRUDInterfaces.getINeutronSubnetCRUD( this);\r
if (subnetInterface == null) {\r
throw new ServiceUnavailableException("Subnet CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
@PathParam("subnetUUID") String subnetUUID,\r
// return fields\r
@QueryParam("fields") List<String> fields) {\r
- INeutronSubnetCRUD subnetInterface = NeutronNBInterfaces.getIfNBSubnetCRUD("default",this);\r
+ INeutronSubnetCRUD subnetInterface = NeutronCRUDInterfaces.getINeutronSubnetCRUD(this);\r
if (subnetInterface == null) {\r
throw new ServiceUnavailableException("Subnet CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
@ResponseCode(code = 409, condition = "Conflict"),\r
@ResponseCode(code = 501, condition = "Not Implemented") })\r
public Response createSubnets(final NeutronSubnetRequest input) {\r
- INeutronSubnetCRUD subnetInterface = NeutronNBInterfaces.getIfNBSubnetCRUD("default",this);\r
+ INeutronSubnetCRUD subnetInterface = NeutronCRUDInterfaces.getINeutronSubnetCRUD(this);\r
if (subnetInterface == null) {\r
throw new ServiceUnavailableException("Subnet CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
}\r
- INeutronNetworkCRUD networkInterface = NeutronNBInterfaces.getIfNBNetworkCRUD("default", this);\r
+ INeutronNetworkCRUD networkInterface = NeutronCRUDInterfaces.getINeutronNetworkCRUD( this);\r
if (networkInterface == null) {\r
throw new ServiceUnavailableException("Network CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
public Response updateSubnet(\r
@PathParam("subnetUUID") String subnetUUID, final NeutronSubnetRequest input\r
) {\r
- INeutronSubnetCRUD subnetInterface = NeutronNBInterfaces.getIfNBSubnetCRUD("default", this);\r
+ INeutronSubnetCRUD subnetInterface = NeutronCRUDInterfaces.getINeutronSubnetCRUD( this);\r
if (subnetInterface == null) {\r
throw new ServiceUnavailableException("Subnet CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
@ResponseCode(code = 501, condition = "Not Implemented") })\r
public Response deleteSubnet(\r
@PathParam("subnetUUID") String subnetUUID) {\r
- INeutronSubnetCRUD subnetInterface = NeutronNBInterfaces.getIfNBSubnetCRUD("default", this);\r
+ INeutronSubnetCRUD subnetInterface = NeutronCRUDInterfaces.getINeutronSubnetCRUD( this);\r
if (subnetInterface == null) {\r
throw new ServiceUnavailableException("Network CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r