[nox-dev] Setting up flows at startup

2010-12-16 Thread Syed Akbar Mehdi
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

Re: [nox-dev] Setting up flows at startup

2010-12-16 Thread Murphy McCauley
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

Re: [nox-dev] Setting up flows at startup

2010-12-16 Thread Syed Akbar Mehdi
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)

Re: [nox-dev] Setting up flows at startup

2010-12-16 Thread 谢峰
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

Re: [nox-dev] Setting up flows at startup

2010-12-16 Thread Srini Seetharaman
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

Re: [nox-dev] Setting up flows at startup

2010-12-16 Thread kk yap
Hi Fengxie, In Zaku, LAVI already dump list of datapath to the console. Look at lavi_switches. You can use nox-console with it and it should just work. Regards KK On 16 December 2010 06:20, Srini Seetharaman seeth...@stanford.edu wrote: Hi Fengxie Please look in