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.dumps(of_command))
r.json()

When executing, I receive the 200 code... but nothing in the "r" variable:
>>>r.json()
u"
>>>r.text
u'""\n'

Am I doing something wrong?

Can't get anything using any of the methods (set_table, get_switch_desc,
get_flow_stats or get_switches), even the 200 success code is always
returned.

POX is called using: ./pox.py -verbose messenger web.webcore
openflow.webservice forwarding.l2_pairs

Any help is welcome.

Regards,
Jorge

Reply via email to