Hi Takahashi,

After following up with openflow-dev
 OFPFF_CHECK_OVERLAP works only with OFPFC_ADD for openflow 1.2 and later.

I am using ofctl_rest.py as my controller code and I made the following
change in ofctl_v1_3.py.

def mod_flow_entry(dp, flow, cmd):
    cookie = int(flow.get('cookie', 0))
    cookie_mask = int(flow.get('cookie_mask', 0))
    table_id = int(flow.get('table_id', 0))
    idle_timeout = int(flow.get('idle_timeout', 0))
    hard_timeout = int(flow.get('hard_timeout', 0))
    priority = int(flow.get('priority', 0))
    buffer_id = int(flow.get('buffer_id', dp.ofproto.OFP_NO_BUFFER))
    out_port = int(flow.get('out_port', dp.ofproto.OFPP_ANY))
    out_group = int(flow.get('out_group', dp.ofproto.OFPG_ANY))

  *  flags = int(flow.get('flags', dp.ofproto.OFPFF_CHECK_OVERLAP)*
    match = to_match(dp, flow.get('match', {}))
    inst = to_actions(dp, flow.get('actions', []))

   .....

Then, I send the flow entries using curl commands

curl -d '{"dpid": "000000000000001","priority": "101","match": {"in_port":
"2"},"actions": [{"type": "OUTPUT", "port": "1"}]}'
http://192.168.219.130:8080/stats/flowentry/add

When I try adding another flow of same priority match I should get
OFPFMFC_OVERLAP
but instead the previous flow is replaced.

Please guide me if I need to make any other changes in the code to set the
OFPFF_CHECK_OVERLAP flag.


Thanks & Regards
Sandhya


On Mon, Dec 1, 2014 at 11:05 PM, Minoru TAKAHASHI <
[email protected]> wrote:

> Hi,Sandhya
>
> Please don't drop the mailing list.
>
> On 2014年12月02日 15:56, varanasi sandhya wrote:
> > Hi Takahashi,
> >
> > Thanks for your quick reply.
> >
> > I am using openvswitch version 2.0.2 and ryu as controller on mininet.
> As per your suggestion I sent an email to openflow-dev regarding this issue.
>
> OK, I hope that your problem is resolved quickly.
>
> >
> > Regards
> > Sandhya
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to