This group is locked. No changes can be made to the group while it is locked.
Date
1 - 2 of 2
Require help for OVSDB configuration
suresh
Hi, I am newbie, and trying to use ODL OVSDB feature.https://docs.opendaylight.org/en/stable-fluorine/user-guide/ovsdb-user-guide.html and when i try to PUT API http://localhost:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1/node/ovsdb: %2F%2FHOST1 Body: { "network-topology:node": [ { "node-id": "ovsdb://HOST1", "connection-info": { "ovsdb:remote-port": "6640", "ovsdb:remote-ip": "192.168.122.1" } } ] } I get HTTP ERROR CODE 415 unsupported media type error. In the ODL log, I see below exceptions. 2019-02-25T09:46:50,986 | DEBUG | qtp132936849-76 | ContainerResponse | 60 - com.sun.jersey.jersey-server - 1.19.4 | Mapped exception to response: 415 (Unsupported Media Type) javax.ws.rs.WebApplicationException: null at com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66) [60:com.sun.jersey.jersey-server:1.19.4] at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100) [60:com.sun.jersey.jersey-server:1.19.4] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) [60:com Can you please help with correct documentation. Thanks suresh |
Vishal Thapar <vthapar@...>
Hi Suresh, The documentation is correct, you're not specifying the media type [application/json] correctly. Correct syntax would depend on the client you're using to make PUT call. Easy way is to use Postman using collections mentioned in https://docs.opendaylight.org/en/stable-fluorine/user-guide/ovsdb-user-guide.html#references If you're using curl, you need to use -H "Content-Type: application/json". Regards, Vishal. On Mon, Feb 25, 2019 at 9:53 AM S Suresh <sureshkumarr.s@...> wrote:
|