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