Hi,

On 2015年04月14日 17:10, Ruchika Luthra wrote:
> Hello,
> 
> For the python code api.py present under ryu/ryu/topology api.py, when I 
> tried to do
> 
> python api.py
> 
> it gives the following error
> Inline image 1
> 
> I have not done any changes in the code so far. Can anyone help me find out 
> why has this happened?
> 
> Thank you

topology/api.py is an API to get information of switches and links.
You can use the following functions.

 def get_switch(app, dpid=None):
 def get_all_switch(app):
 def get_link(app, dpid=None):
 def get_all_link(app):

You use them to import from other apps.
(or if this is used for client application module, set api_style=False 
(line38).)

thanks,

> 
> 
> Ruchika Luthra
> 
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to