Hi, Lucio
(2014年10月27日 00:28), Lucio Agostinho Rocha wrote:
> Hi,
>
> I trying to use openvswitch 2.3.0 and Ryu. However, I getting this error
> using the Ryu REST API, and my old program in openvswitch1.4.6 is not working
> any more :(
> Someone could help me? Any help is useful! I trying this:
>
> # curl -X POST -d '{"dpid": "1","match": {"in_port":"2", "dl_type":"2054",
> "nw_dst":"10.0.0.1"}, "actions": [{"type": "OUTPUT", "port": "1"}]}'
> http://192.168.0.1:8080/stats/flowentry/add
Pre-requisite is incorrect(2054 -> 2048).
(Please check the Table 12 of OFSpec 1.3.4.)
So, try the following:
# curl -X POST -d '{"dpid": "1","match": {"in_port":"2", "dl_type":"2048",
"nw_dst":"10.0.0.1"}, "actions": [{"type": "OUTPUT", "port": "1"}]}'
http://192.168.0.1:8080/stats/flowentry/add
Thanks
>
> And I get this error (This error NOT occurs with openvswitch1.4.6) with
> ryu-manager --verbose ryu/app/ofctl_rest.py:
>
> 192.168.0.1 - - [26/Oct/2014 13:19:34] "POST /stats/flowentry/add HTTP/1.1"
> 200 115 0.016487
> error msg ev version: 0x4 msg_type 0x1 xid 0xdfa44286
> OFPErrorMsg(code=9,data='\x04\x0e\x00h\xdf\xa4B\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x01\x00\x1a\x80\x00\x00\x04\x00\x00\x00\x02\x80\x00\n\x02',type=4)
> type 0x4 code 0x9 0x4 0xe 0x0 0x68 0xdf 0xa4 0x42 0x86 0x0 0x0 0x0 0x0 0x0
> 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
> 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0x0
> 0x0 0x1 0x0 0x1a 0x80 0x0 0x0 0x4 0x0 0x0 0x0 0x2 0x80 0x0 0xa 0x2
> (2430) accepted ('192.168.0.1', 56141)
>
> Regards,
>
> Lucio
> ........
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel