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

f 62 mailtov16 at gmail.com
Thu Mar 30 16:02:44 UTC 2017


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 <blp at ovn.org> 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 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
> > 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 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 <blp at ovn.org> wrote:
> > >
> > > > 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 it only work if the flow differs in the
> *file
> > > > *and
> > > > > in the *ovs *? How the counters can be resetted ?
> > > >
> > > > In OpenFlow 1.2 and later, flow_mod messages need to add a special
> > > > "reset counts" flag to reset the counters.  ovs-ofctl doesn't
> currently
> > > > provide a way to set that flag.  This is an oversight that should be
> > > > corrected.  Until then, if you can use OpenFlow 1.0, then that plus
> > > > --readd should allow you to reset the counters.
> > > >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170330/32a2f449/attachment.html>


More information about the discuss mailing list