Hi all,

Can the controller set the counters of the to-be-installed rule when adding a 
new rule to the flow table?


To be more specific, usually we would set the fields of "match" and "actions" 
when adding a new rule by sth. like:
        match = parser.OFPMatch(in_port=2)
        actions = [parser.OFPActionOutput(3)]

        add_flow(datapath, match, actions)


After this, we will get a new rule in the switch, with "... n_packets=0 
n_bytes=0 ... in_port=2 actions=output:3 ...".


But, what if I want to set the "n_packets=5" when adding the new rule?


Is it possible?
If yes, how can I do this?


Thanks a lot!


Best,
Bin
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to