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 <bantw...@usc.edu>
Date: Tue, Aug 18, 2015 at 4:42 PM
Subject: Failure while adding flow using curl.
To: "Ryu-devel@lists.sourceforge.net" <ryu-devel@lists.sourceforge.net>


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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to