Thank you Minoru. I got your point and it worked well.

Is there any way to know which ports of the switch are connected to other
switches and which ports to the hosts?

Thank you

On Wed, Apr 15, 2015 at 4:09 AM, Minoru TAKAHASHI <
[email protected]> wrote:

> 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
> >
>



-- 
Ruchika Luthra
M.E (CS) 4th Sem
BITS Pilani
------------------------------------------------------------------------------
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