import org.opendaylight.controller.networkconfig.neutron.INeutronPortCRUD;\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.NeutronPort;\r
import org.opendaylight.controller.networkconfig.neutron.NeutronSubnet;\r
import org.opendaylight.controller.networkconfig.neutron.Neutron_IPs;\r
@QueryParam("page_reverse") String pageReverse\r
// sorting not supported\r
) {\r
- INeutronPortCRUD portInterface = NeutronNBInterfaces.getIfNBPortCRUD("default",this);\r
+ INeutronPortCRUD portInterface = NeutronCRUDInterfaces.getINeutronPortCRUD(this);\r
if (portInterface == null) {\r
throw new ServiceUnavailableException("Port CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
@PathParam("portUUID") String portUUID,\r
// return fields\r
@QueryParam("fields") List<String> fields ) {\r
- INeutronPortCRUD portInterface = NeutronNBInterfaces.getIfNBPortCRUD("default",this);\r
+ INeutronPortCRUD portInterface = NeutronCRUDInterfaces.getINeutronPortCRUD(this);\r
if (portInterface == null) {\r
throw new ServiceUnavailableException("Port CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r
@ResponseCode(code = 501, condition = "Not Implemented"),\r
@ResponseCode(code = 503, condition = "MAC generation failure") })\r
public Response createPorts(final NeutronPortRequest input) {\r
- INeutronPortCRUD portInterface = NeutronNBInterfaces.getIfNBPortCRUD("default",this);\r
+ INeutronPortCRUD portInterface = NeutronCRUDInterfaces.getINeutronPortCRUD(this);\r
if (portInterface == null) {\r
throw new ServiceUnavailableException("Port 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
}\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("portUUID") String portUUID,\r
NeutronPortRequest input\r
) {\r
- INeutronPortCRUD portInterface = NeutronNBInterfaces.getIfNBPortCRUD("default",this);\r
+ INeutronPortCRUD portInterface = NeutronCRUDInterfaces.getINeutronPortCRUD(this);\r
if (portInterface == null) {\r
throw new ServiceUnavailableException("Port CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\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 deletePort(\r
@PathParam("portUUID") String portUUID) {\r
- INeutronPortCRUD portInterface = NeutronNBInterfaces.getIfNBPortCRUD("default",this);\r
+ INeutronPortCRUD portInterface = NeutronCRUDInterfaces.getINeutronPortCRUD(this);\r
if (portInterface == null) {\r
throw new ServiceUnavailableException("Port CRUD Interface "\r
+ RestMessages.SERVICEUNAVAILABLE.toString());\r