[pox-dev] openflow.webservice question

2014-02-12 Thread Jorge Arasanz
Hi, After some investigation the python script is: #!/usr/bin/env python import requests import simplejson as json url = "http://69.69.69.1:8000/OF/"; of_command = {'method':'get_switches'} of_command_json = json.dumps(of_command, separators=(',',':')) headers = {'Content-type':'application/x-ww

[pox-dev] openflow.webservice question

2014-02-11 Thread Jorge Arasanz
Hi, I'm trying to gather information from POX using the json-rpc interface, but can't get any information... The python script used is: #!/usr/bin/env python import requests import json pox = 'http://69.69.69.1:8000/OF/' of_command = {'method':'get_switches'} r = requests.post(pox,data=json.dump