Hi, in order to see an example of setting up flows programmatically through a NOX component written in python, you can look at /src/nox/coreapps/examples/pyswitch.py The idea is that you need to construct the openflow packet manually, filling out the flow description and the actions, and then send it to the desired switch When you say "add/delete/drop" flows, you actually cover 2 disparate things: add/delete refers to the type of the OF message (add/delete flow entry), but dropping a flow is described in the 'action' part (drop is an action, like 'forward to port 1, or send to controller). These are described in openflow's specification.
It's a good idea to use wireshark with the OF dissector plugin, in order to monitor the packet you construct, and also see what the ones send out by, e.g. pyswitch, look like. (the process is the same in a C++ component, just the API differs a bit. Also you can manually setup flows using the 'dpctl' tool, but I'm assuming you were asking how one does it using NOX) On Wed, Apr 28, 2010 at 12:08 AM, 曾毓元 <[email protected]> wrote: > Dear all: > Sorry to bother you. > I want to try to do the table control, like add/delete/drop flows > But, I don't know how to start it. > > Have any manner can provide? > or sample source code? > > > Regards > Ian > > _______________________________________________ > nox-dev mailing list > [email protected] > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >
_______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
