@PUT
	@Path("/v2.0/subnets/{subnetId}")
	@Produces(MediaType.APPLICATION_JSON)
	public Response updateSubnet(@PathParam("subnetId") String subnetId, final String request) throws MalformedURLException, IOException{
		//Convert input object NetworkData into a String like a Json text
		Object sub;
		sub = JsonUtility.fromResponseStringToObject(request,Subnet.class);
		String input = JsonUtility.toJsonString(sub);
		//Connect to a REST service
		HttpURLConnection conn=HTTPConnector.HTTPConnect(new URL(this.URLpath+"/"+subnetId), OpenstackNetProxyConstants.HTTP_METHOD_PUT, input);
		//Get the response text from the REST service
		String response=HTTPConnector.printStream(conn);
		Subnet s=(Subnet) JsonUtility.fromResponseStringToObject(response, Subnet.class);
		int responseCode=conn.getResponseCode();
		HTTPConnector.HTTPDisconnect(conn);
		if (responseCode==200){
//			SubnetOntology.updateSubnet(s);
		}
		//Build the response
		return Response.status(responseCode).header("Access-Control-Allow-Origin", "*").entity(s).build();
	}