Hi guys,

I'm writing a NOX C++ component that installs a flow on a path (retrieved
from the routing_module).
Moreover I need to duplicate the flow to the controller, on some particular
switches on the path.

I would like to use the following function provided by the routing module
component;

bool 
setup_route<http://noxrepo.org/~yapkke/doc/classvigil_1_1applications_1_1Routing__module.html#a8032c28af0ad6769abd7220ad1ec798a>
 (const Flow <http://noxrepo.org/~yapkke/doc/structvigil_1_1Flow.html> &flow,
const 
Route<http://noxrepo.org/~yapkke/doc/structvigil_1_1applications_1_1Routing__module_1_1Route.html>
&route,
uint16_t inport, uint16_t outport, uint16_t flow_timeout, const
ActionList<http://noxrepo.org/~yapkke/doc/classvigil_1_1applications_1_1Routing__module.html#a635e053076c56c638350e5a32f556176>
&actions<http://noxrepo.org/~yapkke/doc/JSON__parser_8c.html#af806efc6052edbc741683ec893bb2fe1>,
bool check_nat, const
GroupList<http://noxrepo.org/~yapkke/doc/namespacevigil.html#aaa0f738d3da60826e1057cbc0ad7f39a>
*sdladdr_groups,
const 
GroupList<http://noxrepo.org/~yapkke/doc/namespacevigil.html#aaa0f738d3da60826e1057cbc0ad7f39a>
*snwaddr_groups,
const 
GroupList<http://noxrepo.org/~yapkke/doc/namespacevigil.html#aaa0f738d3da60826e1057cbc0ad7f39a>
*ddladdr_groups,
const 
GroupList<http://noxrepo.org/~yapkke/doc/namespacevigil.html#aaa0f738d3da60826e1057cbc0ad7f39a>
 *dnwaddr_groups)


My problem is when building the ActionList buffer, and I have some questions
about its construction:

> How to build a single entry of such list?
> How I should build an entry with multiple actions?
> There is some component available in NOX using the same API, from which I
can take inspiration?


Thanks a lot, best regards.

-- 
Andrea Simeoni
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to