@Path(value="vnets")
public class VirtualNetworkWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
VirtualNetworkWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createVirtualDevice(long networkId,
InputStream stream)
Creates a virtual device from the JSON input stream.
|
javax.ws.rs.core.Response |
createVirtualHost(long networkId,
InputStream stream)
Creates a virtual network host from the JSON input stream.
|
javax.ws.rs.core.Response |
createVirtualLink(long networkId,
InputStream stream)
Creates a virtual network link from the JSON input stream.
|
javax.ws.rs.core.Response |
createVirtualNetwork(InputStream stream)
Creates a virtual network from the JSON input stream.
|
javax.ws.rs.core.Response |
createVirtualPort(long networkId,
String virtDeviceId,
InputStream stream)
Creates a virtual network port in a virtual device in a virtual network.
|
javax.ws.rs.core.Response |
getVirtualDevices(long networkId)
Returns all virtual network devices in a virtual network.
|
javax.ws.rs.core.Response |
getVirtualHosts(long networkId)
Returns all virtual network hosts in a virtual network.
|
javax.ws.rs.core.Response |
getVirtualLinks(long networkId)
Returns all virtual network links in a virtual network.
|
javax.ws.rs.core.Response |
getVirtualNetworkById(String tenantId)
Returns the virtual networks with the specified tenant identifier.
|
javax.ws.rs.core.Response |
getVirtualNetworks()
Returns all virtual networks.
|
javax.ws.rs.core.Response |
getVirtualPorts(long networkId,
String deviceId)
Returns all virtual network ports in a virtual device in a virtual network.
|
javax.ws.rs.core.Response |
removeVirtualDevice(long networkId,
String deviceId)
Removes the virtual network device from the virtual network.
|
javax.ws.rs.core.Response |
removeVirtualHost(long networkId,
InputStream stream)
Removes the virtual network host from the JSON input stream.
|
javax.ws.rs.core.Response |
removeVirtualLink(long networkId,
InputStream stream)
Removes the virtual network link from the JSON input stream.
|
javax.ws.rs.core.Response |
removeVirtualNetwork(long networkId)
Removes the virtual network with the specified network identifier.
|
javax.ws.rs.core.Response |
removeVirtualPort(long networkId,
String deviceId,
long portNum)
Removes the virtual network port from the virtual device in a virtual network.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getVirtualNetworks()
@GET
@Produces(value="application/json")
@Path(value="{tenantId}")
public javax.ws.rs.core.Response getVirtualNetworkById(@PathParam(value="tenantId")
String tenantId)
tenantId - tenant identifier@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createVirtualNetwork(InputStream stream)
stream - tenant identifier JSON stream@DELETE
@Path(value="{networkId}")
public javax.ws.rs.core.Response removeVirtualNetwork(@PathParam(value="networkId")
long networkId)
networkId - network identifier@GET
@Produces(value="application/json")
@Path(value="{networkId}/devices")
public javax.ws.rs.core.Response getVirtualDevices(@PathParam(value="networkId")
long networkId)
networkId - network identifier@POST
@Path(value="{networkId}/devices")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createVirtualDevice(@PathParam(value="networkId")
long networkId,
InputStream stream)
networkId - network identifierstream - virtual device JSON stream@DELETE
@Path(value="{networkId}/devices/{deviceId}")
public javax.ws.rs.core.Response removeVirtualDevice(@PathParam(value="networkId")
long networkId,
@PathParam(value="deviceId")
String deviceId)
networkId - network identifierdeviceId - device identifier@GET
@Produces(value="application/json")
@Path(value="{networkId}/devices/{deviceId}/ports")
public javax.ws.rs.core.Response getVirtualPorts(@PathParam(value="networkId")
long networkId,
@PathParam(value="deviceId")
String deviceId)
networkId - network identifierdeviceId - virtual device identifier@POST
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="{networkId}/devices/{deviceId}/ports")
public javax.ws.rs.core.Response createVirtualPort(@PathParam(value="networkId")
long networkId,
@PathParam(value="deviceId")
String virtDeviceId,
InputStream stream)
networkId - network identifiervirtDeviceId - virtual device identifierstream - virtual port JSON stream@DELETE
@Path(value="{networkId}/devices/{deviceId}/ports/{portNum}")
public javax.ws.rs.core.Response removeVirtualPort(@PathParam(value="networkId")
long networkId,
@PathParam(value="deviceId")
String deviceId,
@PathParam(value="portNum")
long portNum)
networkId - network identifierdeviceId - virtual device identifierportNum - virtual port number@GET
@Produces(value="application/json")
@Path(value="{networkId}/links")
public javax.ws.rs.core.Response getVirtualLinks(@PathParam(value="networkId")
long networkId)
networkId - network identifier@POST
@Path(value="{networkId}/links")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createVirtualLink(@PathParam(value="networkId")
long networkId,
InputStream stream)
networkId - network identifierstream - virtual link JSON stream@DELETE
@Path(value="{networkId}/links")
@Consumes(value="application/json")
public javax.ws.rs.core.Response removeVirtualLink(@PathParam(value="networkId")
long networkId,
InputStream stream)
networkId - network identifierstream - virtual link JSON stream@GET
@Produces(value="application/json")
@Path(value="{networkId}/hosts")
public javax.ws.rs.core.Response getVirtualHosts(@PathParam(value="networkId")
long networkId)
networkId - network identifier@POST
@Path(value="{networkId}/hosts")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createVirtualHost(@PathParam(value="networkId")
long networkId,
InputStream stream)
networkId - network identifierstream - virtual host JSON stream@DELETE
@Path(value="{networkId}/hosts")
@Consumes(value="application/json")
public javax.ws.rs.core.Response removeVirtualHost(@PathParam(value="networkId")
long networkId,
InputStream stream)
networkId - network identifierstream - virtual host JSON stream