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

Ben Pfaff blp at ovn.org
Wed Mar 29 05:13:55 UTC 2017


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.
> >


More information about the discuss mailing list