If you want to proactively install flow entries a reasonable place to put the code that does it might be the handler of datapath_join, in your component. This code runs when a new switch connects to NOX, and the switch's information is passed to the handler through the event.
If that doesn't work for want you want to do, maybe you can describe when exactly you want to install flows On Thu, Jun 2, 2011 at 11:05 AM, kashyap TA <[email protected]> wrote: > Hi All, > Yes, I tried doing a component, but there is one problem. As long > as I understand the python component, it get a data packet and from that it > get some info and then progemas a flow. > > In my case, All I need to do it program a flow in the switch using the NOX > where I say if it is from a particular port say "portA" with a mac > address"ab:cd:de:ef" and vlan "10" then forward it to "portB" on else flood > to all the ports. I am not sure we can just install flows into the box with > out getting a datat packet. The swith is a openflow hardware enabled switch. > > > Please let me know. If anybody has a sample flow it would be great. Please > do let me know. > > Thanks and Regards > Kashyap > On Thu, May 26, 2011 at 4:41 PM, Baohua Yang <[email protected]> wrote: > >> NOX doesn't provide a CLI, so you might have to write a APP to setup your >> routing rules. >> See here for more information of how to write a simple APP. >> http://noxrepo.org/noxwiki/ >> >> On Thu, May 26, 2011 at 1:09 PM, kashyap TA <[email protected]>wrote: >> >>> Hi, >>> I am running nox on my linux machine and I have a openflow enabled >>> hardware switch. I am able to initiate a connection between the Nox >>> Controller and the hardware switch. I need to push some flows on to the >>> Switch from the NOX controller. Can I do that? and if so how ? I am not able >>> to find any help guide. I am new to Nox controller. Can some body help. >>> >>> I just need to push a flow which says, if the packet comes from a >>> particular port, push it out on a particular port. >>> >>> >>> Please do let me know. >>> >>> >>> Thanks and Regards >>> Kashyap >>> _______________________________________________ >>> nox-dev mailing list >>> [email protected] >>> http://noxrepo.org/mailman/listinfo/nox-dev >>> >>> >> >> >> -- >> Best wishes! >> Baohua >> >> > > _______________________________________________ > nox-dev mailing list > [email protected] > http://noxrepo.org/mailman/listinfo/nox-dev > >
_______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev
