Hi Fengxie Please look in src/nox/netapps/discovery/discovery.py for the phrase "link detected". That discovery module keeps track of the topology by sending our LLDPs.
Srini. On Thu, Dec 16, 2010 at 3:58 AM, 谢峰 <xiefen...@gmail.com> wrote: > Hello, Akbar, Murphy > > I want to dump the topology so that I can see the topology in the console. > how should I do? Can I add some code into the routing.cc file, but I don't > know exactly what the detailed nodes information stored in. Can you help me. > > thanks. > > regards > > fengxie > > 2010/12/16 Syed Akbar Mehdi <akbar.me...@seecs.nust.edu.pk> >> >> Thanks Murphy. This makes more sense, since datapaths may connect and >> leave at various times. >> >> On Thu, Dec 16, 2010 at 4:38 PM, Murphy McCauley <jam...@nau.edu> wrote: >>> >>> Welcome to nox-dev, Akbar. >>> >>> You should actually do this when the switches connect (in response to the >>> datapath join event) rather than at NOX/component startup, as the switches >>> won't have connected at that point. >>> >>> -- Murphy >>> >>> On Dec 16, 2010, at 3:19 AM, Syed Akbar Mehdi wrote: >>> >>> > Hi, >>> > >>> > I am writing Nox components using C++. I want to install some 'default' >>> > flows at startup (e.g. if I want to say that all ARP packets should be >>> > sent >>> > to the controller). I understand that I should probably put the relevant >>> > code in either configure() or install() (which one should it be?). How do >>> > I >>> > get the IDs of all datapaths that are connected to the controller when >>> > initialize() or configure() is called for a component? >>> > >>> > Regards, >>> > Akbar >>> > _______________________________________________ >>> > nox-dev mailing list >>> > nox-dev@noxrepo.org >>> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >>> >> >> >> _______________________________________________ >> nox-dev mailing list >> nox-dev@noxrepo.org >> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> > > > > -- > Feng Xie > Ph.D. Candidate > Network Security Lab, Research Institute of Information Technology > Tsinghua National Laboratory for Information Science and Technology > Dept. of Automation, Tsinghua Univ., Beijing, China, 100084. > Tel.: +86-010-6277-2656 > Email: xiefen...@gmail.com > > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org