Re: [Ryu-devel] How to get the topology information in ryu

2015-01-09 Thread Flavio Junior
It's on line 104: if src not in self.net: self.net.add_node(src) self.net.add_edge(dpid,src,{' port':msg.in_port}) self.net.add_edge(src,dpid) Flávio Castro Jr. MSCS student at Georgia Tech B.S.E in Networks Engineering from the University of Brasilia. CCNA Certified (404) 660-9373 On Fri, Jan 9

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-09 Thread Flavio Junior
That is right. The topology API only talks to the switch. The way I did that was by learning the hosts when the ARPs arrive. If you look at the code you'll find it in the part who says if host is unknown. Regarding the backup path, I don't know what is your timeline, but you might also want to ch

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-09 Thread Padma Jayasankar
Hi, In Ryu, will the topology discovery find the links between the hosts and the switch. when i checked the gui_topology app, it displays the links in between the switches but doesn't show the links between the host and switch. Please clarify. Thanks and Regards, Padma V On Fri, Jan 9, 2015 at

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-08 Thread Padma Jayasankar
Hi, Now shortestpath is working with my topology..i am able to ping b/w the hosts. But, when i am trying to make a link down, the updated topology is not getting reflected in shortestpath. According to my understanding, i have to add handlers in the app for EventLinkAdd and EventLinkDelete. Is

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-07 Thread Padma Jayasankar
HI, Thanks, will try with this On Wed, Jan 7, 2015 at 11:43 PM, Flavio Junior wrote: > I can't help without seeing your code because it's a KeyError. > > Make sure link.src is what you are looking for. I guess link.src is an > object rather than a string, so it may be it. > > One thing that was

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-07 Thread Flavio Junior
I can't help without seeing your code because it's a KeyError. Make sure link.src is what you are looking for. I guess link.src is an object rather than a string, so it may be it. One thing that was really useful for me was this method to figure out the exact content of the given objects. def ls

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-07 Thread Padma Jayasankar
Hi, Now the topology discovery identifies the links and am able to ping b/w two hosts..But when i am trying to down a link(link s3 s7 down), it gives some error. Further if i try to ping it doesn't compute the alternate path. Instead it shows"destination not reachable" *Error:* hub: uncaught exc

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-04 Thread ocean shi
damn...im so stupid...i forget to add the "--observe-links " argument when starting the rest_topolgy.py. its working now... 2015-01-05 9:21 GMT+08:00 ocean shi : > i also met some problems about the topology information when using > app/rest_topology.py. i could get the switches in the browser wi

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-04 Thread ocean shi
i also met some problems about the topology information when using app/rest_topology.py. i could get the switches in the browser with http://127.0.0.1:8080/v1.0/topology/switches, but i couldn't get the links with /v1.0/topology/links, really strange :( im reading the codes now and wish i could fin

Re: [Ryu-devel] How to get the topology information in ryu

2015-01-04 Thread Flavio Junior
Hi. Sometimes the topology discovery would not work for, apparently, no reason. Are there any known bugs there? I know it's a huge pain to debug the topology discovery but if you can't build the view of the topology then you won't be able to forward. What solved the problem was the order in which

Re: [Ryu-devel] How to get the topology information in ryu

2014-12-31 Thread Flavio Junior
Yes, I had a 5 nodes ring topology and it worked fine. But the flood actions are probably causing a flood storm. Spanning tree is not added to the code. It shouldn't be hard to add it thou. I created this post

Re: [Ryu-devel] How to get the topology information in ryu

2014-12-18 Thread Padma
Thanks a lot. Will go thru it and get back to u if needed. Sent from my iPhone On 19-Dec-2014, at 6:20 AM, Flavio Junior wrote: > I just posted it to github here: https://github.com/castroflavio/ryu > > Please take a look at the code (shortestpath.py). The most important parts > are the netwo

Re: [Ryu-devel] How to get the topology information in ryu

2014-12-18 Thread Flavio Junior
I just posted it to github here: https://github.com/castroflavio/ryu Please take a look at the code (shortestpath.py). The most important parts are the networkx SP computation and the topology discovery (ryu.topology). Networkx is a python library to do graph operations. We just finished the proj

[Ryu-devel] How to get the topology information in ryu

2014-12-18 Thread Padma Jayasankar
Hi All, I am new to Rye. I went through ryu ebook to know the basics. For my project , i have to find the backup path along with working path when a ping request comes. Am using Mininet , OVS and Ryu. Earlier i used POX and used the l2_multi that computes the shortest path by accessing the topolo