Re: [ovs-discuss] How to reset counters of ovs-flows ?

2017-03-30 Thread f 62
If I just re-add the existing individual flow, the packet count resets to 0. On Thu, Mar 30, 2017 at 9:00 PM, Ben Pfaff wrote: > I see now that you can add "reset_counts" to individual flows to get the > behavior you want. This isn't so convenient, though, and it doesn't > appear to be document

Re: [ovs-discuss] How to reset counters of ovs-flows ?

2017-03-30 Thread Ben Pfaff
I see now that you can add "reset_counts" to individual flows to get the behavior you want. This isn't so convenient, though, and it doesn't appear to be documented. On Tue, Mar 28, 2017 at 10:13:55PM -0700, Ben Pfaff wrote: > If you can do without the flows momentarily, you could delete all the

Re: [ovs-discuss] How to reset counters of ovs-flows ?

2017-03-28 Thread Ben Pfaff
If you can do without the flows momentarily, you could delete all the flows and then replace them. On Wed, Mar 29, 2017 at 10:28:13AM +0530, f 62 wrote: > Getting this error with OpenFlow1.0 > > sudo ovs-ofctl -O OpenFlow10 --readd replace-flows br-int /tmp/br_int > > ovs-ofctl: switch does not

Re: [ovs-discuss] How to reset counters of ovs-flows ?

2017-03-28 Thread f 62
Getting this error with OpenFlow1.0 sudo ovs-ofctl -O OpenFlow10 --readd replace-flows br-int /tmp/br_int ovs-ofctl: switch does not support any of the usable flow formats (OXM,NXM+table_id) Is there any other way to achieve same ? On Tue, Mar 28, 2017 at 10:17 PM, Ben Pfaff wrote: > On Tue,

Re: [ovs-discuss] How to reset counters of ovs-flows ?

2017-03-28 Thread Ben Pfaff
On Tue, Mar 28, 2017 at 05:26:46PM +0530, f 62 wrote: > I am trying to reset the counter of ovs-flows. I followed following steps: > > a. ovs-ofctl -O Openflow13 dump-flows br-int > /tmp/br_int > > b. ovs-ofctl -O OpenFlow13 --readd replace-flows br-int /tmp/br_int > > > Its not working . Does

[ovs-discuss] How to reset counters of ovs-flows ?

2017-03-28 Thread f 62
I am trying to reset the counter of ovs-flows. I followed following steps: a. ovs-ofctl -O Openflow13 dump-flows br-int > /tmp/br_int b. ovs-ofctl -O OpenFlow13 --readd replace-flows br-int /tmp/br_int Its not working . Does it only work if the flow differs in the *file *and in the *ovs *? How