Hi,Sandhya

On 2014年12月03日 04:02, varanasi sandhya wrote:
> 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.

Other changes are unnecessary.
Hmm, I also tried to implement the following modifications.

> 
>   *  flags = int(flow.get('flags', dp.ofproto.OFPFF_CHECK_OVERLAP)*
>     match = to_match(dp, flow.get('match', {}))

And, I send the following curl commands.

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

Then,The result now follows.
(This is the same result as my email previously sent.)

OpenvSwitch: no error is returned.
CpqD: be returned the following error.
    Type: OFPET_FLOW_MOD_FAILED (5)
    Code: OFPFMFC_OVERLAP (3)

Have you tried to confirm the presence or absence of support for this feature 
to "ovs-dev"?

---

For your information,rather than modifying the ofctl, setting of 
OFPFF_CHECK_OVERLAP flag is possible.

e.g.)
  curl -X POST -d '{"dpid": 1, "match":{"dl_vlan": 5},"actions":[{"port":2, 
"type":"OUTPUT"}],
                    "table_id":3, "flags":2, "priority":1000}' 
http://localhost:8080/stats/flowentry/add

  Note:"flags": 2 mean OFPFF_CHECK_OVERLAP (2)

thanks

> 
> 
> Thanks & Regards
> Sandhya
> 
> 
> On Mon, Dec 1, 2014 at 11:05 PM, Minoru TAKAHASHI 
> <[email protected] <mailto:[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