Thank you. I have found my solution:
curl -d '{"dpid":1, "cookie":8, "cookie_mask":0xFFFFFFFFFFFFFFFF,
"match":{} }' http://localhost:8080/stats/flowentry/delete works
It filters the rules to delete using: flow_mod.cookie BITWISE_AND
flow_mod.cookie_mask == flow_entry.cookie BITWISE_AND flow_mod.cookie_mask
On Wed, Sep 9, 2015 at 2:52 AM, Minoru TAKAHASHI <
[email protected]> wrote:
> Hi,
>
> On 2015年09月09日 02:42, Wayne Marsh wrote:
> > Hello everyone,
> >
> > I'm trying to delete a rule based on the cookie. From what I've read,
> deleting rules using the cookie requires the cookie_mask to also be present.
> >
> > I have tried the following to delete a Flow with cookie 8:
> >
> > curl -d '{"dpid":1, "cookie":8, "cookie_mask":0, "match":{}}'
> http://localhost:8080/stats/flowentry/delete_strict
> >
> > curl -d '{"dpid":1, "cookie":8, "cookie_mask":8, "match":{}}'
> http://localhost:8080/stats/flowentry/delete_strict
> >
> > curl -d '{"dpid":"1", "cookie":"8", "cookie_mask":"0", "match":{}}'
> http://localhost:8080/stats/flowentry/delete_strict
> >
> > curl -d '{"dpid":"1", "cookie":"8", "cookie_mask":"8", "match":{}}'
> http://localhost:8080/stats/flowentry/delete_strict
> >
> > curl -d '{"dpid":"1", "cookie":"0", "cookie_mask":"8", "match":{}}'
> http://localhost:8080/stats/flowentry/delete_strict
> >
> >
> > curl -d '{"dpid":"1", "cookie_mask":"8", "match":{}}'
> http://localhost:8080/stats/flowentry/delete_strict
> > The rule still persists. I'm not exactly sure what I'm doing wrong.
> >
> > Any ideas what I may be doing wrong?
>
> "flowentry/delete_strict" delete rules that strictly matching *wildcards*
> and *priority*.
> (Please refer to 7.3.4.1 Modify Flow Entry Message of OFspec-v1.3.4)
>
> thanks,
>
> >
> >
> >
> ------------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
>
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel