Hi,
"n_packets" value of the ovs-ofctl command is the statistic information managed
by OVS.
---
From: manpage of ovs-ofctl
n_packets
The number of packets that have matched the entry.
---
So the feature setting "n_packets" is not defined in OpenFlow Spec.
If you need to set "n_packets" value, how about contacting OVS devel team?
Thanks,
Iwase
On 2015年10月15日 17:17, YB wrote:
> 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
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel