Hi Iwase,
Sorry I did not make this thing clear before. I do not want ryu to discover the
switch-host link and I am taking care of this kind of links somewhere else in
my code. But topology.api cannot always discover all the switches and
switch-to-switch link sometimes. I tried several times. Sometimes it discover
all my 7 switches but sometimes it stops after discovering 4 or 6 switches and
failed to discover the corresponding links. Can you please tell me, is it
possible that topology.api can miss some switches to discover?
If you check my code in the previous email, you will find that I am printing
the switch list. In this switch list sometime after 20s I found only 2/ 4/ 5
switches which is actually the problem. I expected all the 7 switches in the
'switches' list. For your kind information, I ignore all the packets before
discovering the topology. After discovering the application only deals with the
ip packets.
I am eagerly waiting for your reply.
Thanking youSakib
On Thursday, 16 April 2015, 2:51, Yusuke Iwase <[email protected]>
wrote:
Hi Sakib,
You mean that all the link should include switch-switch links AND switch-host
links, right?
If so, topology.api module discovers switch-switch links ONLY.
The reason which I'm estimating is ...
topology.api module uses LLDP packet to observe links,
but the hosts has no way to do Packet-In for notifying the arrival of LLDP
packets.
Thanks,
Iwase
On 2015年04月16日 00:31, MD.Badruzzaman Shakib wrote:
> Hello
>
> I am using topology_api_app module to get the switch and link information of
> my topology. My code is something as below-
>
> @set_ev_cls(event.EventSwitchEnter)
> def get_topology_data(self, ev):
> switch_list = get_switch(self.topology_api_app, None)
> switches=[switch.dp.id for switch in switch_list]
> print "switches:", switches
>
> links_list = get_link(self.topology_api_app, None)
> links=[(link.src.dpid,link.dst.dpid,{'port':link.src.port_no}) for
>link in links_list]
> temp_links = links
> links=[(link.dst.dpid,link.src.dpid,{'port':link.dst.port_no}) for
>link in links_list]
> temp_links += links
>
> I have 7 switches in my topology. With this code sometimes my application
> discover
>
> - all the switches and links
> (works perfect)
> - portion of the switches and obviously not all links (failed to
> work)
> - all the switches but not all links
> (failed to work)
>
> This behavior is really makes me confused. At first I though the application
> required more time to get all the data. But I test my application with
> various time (5s, 10s, 20s) for a lot of times. From my tests it seems this
> problem is not for time but something else. Can anyone please tell me why
> this is happening? Please share your experience if you face something close
> to this situation.
>
> Thanking you
> Sakib
>
>
>
> ------------------------------------------------------------------------------
> 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