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