getting 415 error while trying PUT using REST api.

asked 2017-04-14 00:10:20 -0700

aruna.karri gravatar image

updated 2017-04-14 01:54:04 -0700

Hi,

i am tryinh to do OVS-host and cntrl connection as per the doc

http://docs.opendaylight.org/en/stabl...

Below is my python script...

import os,sys import requests import codecs,json

client = requests.Session()

client.auth=("admin","admin")

client.verify=False

headers={'ContentType':'application/json','Accept':'application/json'}

data={ "network-topology:node": [ { "node-id": "ovsdb:HOST1", "connection-info": { "ovsdb:remote-port": "6640", "ovsdb:remote-ip": "10.0.0.1" } } ] }

jdata=json.dumps(data)

url="http://10.198.196.64:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1/node/ovsdb:HOST1/"

response=client.put(url,data=data,headers=headers)

print response

May i get any help in resolving the error..

edit retag flag offensive close merge delete