Re: Require help for OVSDB configuration


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:
Hi,
I am newbie, and trying to use ODL OVSDB  feature.
I follow this tutorial,
https://docs.opendaylight.org/en/stable-fluorine/user-guide/ovsdb-user-guide.html

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
_______________________________________________
ovsdb-dev mailing list
ovsdb-dev@...
https://lists.opendaylight.org/mailman/listinfo/ovsdb-dev

Join z.archive.ovsdb-dev@lists.opendaylight.org to automatically receive all group messages.