I tried without the ofp_match, only with command=.... However, i got the
same result.
>From another email of this mailing list:
" ... clear1 = of.ofp_flow_mod(match=of.ofp_match(),command=of.OFPFC_DELETE)
clear2 = of.ofp_flow_mod(match=of.ofp_match(),command=of.OFPFC_DELETE)
clear1.match.tp_src =80
clear1.match.tp_dst = 25521
clear2.match.tp_src = 1234
clear2.match.tp_src = 8765
for switch in core.openflow._connections.values():
switch.send(clear1)
switch.send(clear2)
In this case all flow entries are deleted disregarding my match fields(
even delete ARP flow entry..)..."
In my case, ARP msgs are received only after the flow's hard_timeout was
reached, not after the flows were removed by ofpfc_delete. This implies
that the flows are not being properly removed, am I correct?
2013/6/21 Murphy McCauley <[email protected]>
> This looks correct (though you actually don't need to specify the match at
> all -- it should default to matching everything).
>
> Which flows is it not deleting, and how do you know it's not deleting them?
>
> Can you look at the flow mod on the wire (with Wireshark and the OpenFlow
> dissector) and convince yourself that it looks correct?
>
> -- Murphy
>
> On Jun 20, 2013, at 7:27 PM, Anderson Sartor wrote:
>
> > I'm trying to clear all flows from the switches, but the flows are not
> being removed.
> > I'm doing the following:
> > msg = of.ofp_flow_mod(match=of.ofp_match(),command=of.OFPFC_DELETE)
> > for connection in core.openflow._connections.values():
> > connection.send(msg)
> >
> > Why is this not working?
> >
> > Thanks,
> >
>
>