Hi Iwase,

Thank you so much for your response! Yes the inputs seemed fine to me as
well and hence I was confused as to what mistake I was doing. I am using a
Cisco switch. It might be a bug from the switch side. Let me get back to
you on this.

Thanks again!

Regards,

Vinay Pai B.H.

On Wed, Aug 19, 2015 at 4:54 PM, Yusuke Iwase <[email protected]>
wrote:

> Hi,
>
> > error msg ev version: 0x4 msg_type 0x1 xid 0xf6b65182
> OFPErrorMsg(code=5, ..., type=4)
>
> This message shows the error type is 4 (OFPET_BAD_MATCH) and the error
> code is 5 (OFPBMC_BAD_WILDCARDS).
> OFPBMC_BAD_WILDCARDS is described at "7.2.3.4 Flow Matching" in OpenFlow
> Spec 1.3.4.
>
> By the way, which switch do you use?
> With Open vSwitch, the following commands work well.
>
> $ curl -X POST -d '{
> >     "dpid": 1,
> >     "table_id": 1,
> >     "priority": 11111,
> >     "match": {
> >         "in_port": 5097,
> >         "eth_type": 2048,
> >         "ipv4_src": "192.168.0.1"
> >     },
> >     "actions": [
> >         {
> >             "type": "OUTPUT",
> >             "port": 1007
> >         }
> >     ]
> > }' http://localhost:8080/stats/flowentry/add
> $
> $ curl -X GET http://localhost:8080/stats/flow/1 | jq .
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 100   302  100   302    0     0  56469      0 --:--:-- --:--:-- --:--:--
> 60400
> {
>   "1": [
>     {
>       "match": {
>         "in_port": 5097,
>         "nw_src": "192.168.0.1",
>         "dl_type": 2048
>       },
>       "flags": 0,
>       "table_id": 1,
>       "duration_sec": 7,
>       "priority": 11111,
>       "actions": [
>         "OUTPUT:1007"
>       ],
>       "idle_timeout": 0,
>       "cookie": 0,
>       "packet_count": 0,
>       "hard_timeout": 0,
>       "byte_count": 0,
>       "length": 104,
>       "duration_nsec": 7.01e+08
>     }
>   ]
> }
>
> Thanks,
> Iwase
>
> On 2015年08月20日 07:39, vinay pai wrote:
> > Hi Ryu Developers,
> >
> > I am not able to make any progress because of this issue and would be
> really grateful if anyone could help me out with this.
> >
> > I can figure out that type 0x1 (which meant bad request) and and code =
> 5 which means OFPBAC_BAD_ARGUMENT. Am I passing any bad argument? Any
> pointers will be really helpful!
> >
> > Regards,
> >
> > Vinay Pai B.H.
> >
> > ---------- Forwarded message ----------
> > From: *vinay pai* <[email protected] <mailto:[email protected]>>
> > Date: Tue, Aug 18, 2015 at 4:42 PM
> > Subject: Failure while adding flow using curl.
> > To: "[email protected] <mailto:
> [email protected]>" <[email protected]
> <mailto:[email protected]>>
> >
> >
> > Hi,
> >
> > When I try to add a flow to the switch using the curl command, its
> throwing an error and I am not able to figure out what exactly it means.
> Any help will be greatly appreciated!
> >
> > Output as below:
> >
> > ryu@ryu-vm:~$ curl -X GET http://localhost:8080/stats/switches
> > [374383422768450]
> > ryu@ryu-vm:~$
> > ryu@ryu-vm:~$ curl -X POST -d '{
> >     "dpid": 374383422768450,
> >     "table_id": 1,
> >     "priority": 11111,
> >     "match": {
> >         "in_port": 5097,
> >         "eth_type": 2048,
> >         "ipv4_src": "192.168.0.1"
> >     },
> >     "actions": [
> >         {
> >             "type": "OUTPUT",
> >             "port": 1007
> >         }
> >     ]
> > }' http://localhost:8080/stats/flowentry/add
> > ryu@ryu-vm:~$
> >
> >
> > While enabling the verbose mode for the controller, I can see that I
> have a 200 HTTP (which means the message has been accepted) but get an
> immediate error as follows:
> >
> > (13817) accepted ('127.0.0.1', 43844)
> > 127.0.0.1 - - [19/Aug/2015 08:33:32] "POST /stats/flowentry/add
> HTTP/1.1" 200 115 0.001523
> > error msg ev version: 0x4 msg_type 0x1 xid 0xf6b65182
> OFPErrorMsg(code=5,data='\x04\x0e\x00X\xf6\xb6Q\x82\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00+g\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x01\x00\x0c\x80\x00\x00\x04\x00\x00\x13\xe9\x00\x00\x00\x00',type=4)
> type 0x4 code 0x5 0x4 0xe 0x0 0x58 0xf6 0xb6 0x51 0x82 0x0 0x0 0x0 0x0 0x0
> 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0x2b
> 0x67 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0
> 0x0 0x0 0x0 0x1 0x0 0xc 0x80 0x0 0x0 0x4 0x0 0x0 0x13 0xe9 0x0 0x0 0x0 0x0
> >
> > Please let me know if any additional details are required.
> >
> > Regards,
> >
> > Vinay Pai B.H.
> >
> > --
> > Vinay Pai B.H.
> > Grad Student - Computer Science
> > Viterbi School of Engineering
> > University of Southern California
> > Los Angeles, CA, USA
> >
> >
> >
> > --
> > Vinay Pai B.H.
> > Grad Student - Computer Science
> > Viterbi School of Engineering
> > University of Southern California
> > Los Angeles, CA, USA
> >
> >
> >
> ------------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
>



-- 
Vinay Pai B.H.
Grad Student - Computer Science
Viterbi School of Engineering
University of Southern California
Los Angeles, CA, USA
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to