Hi,
Sorry for jumping in.
OFPBRC_BAD_EXPERIMENTER(3) means that the specified experimenter_id(in
this case, 6) is not found.
Please confirm what kind of experimenter your switch supports.
Thanks,
Fujimoto
On 2017年12月05日 18:20, Subha wrote:
Hi Iwase,
Sure will try the approach u mentioned. Meanwhile I tried using the
following json file but got error.
Can you pls correct me, if am missing something.
curl -X POST -d '{
"dpid": 55930,
"table_id": 0,
"exp_type": 65535,
"experimenter": 6,
"len": 8,
"data_type": "ascii",
"data": "0"
}' http://$controllerIP/stats/experimenter/1
Error:
(6193) accepted ('127.0.0.1', 49114)
Sending message with xid(2fd2e75f) to datapath(000000000000da7a):
version=None,msg_type=None,msg_len=None,xid=0x2fd2e75f,OFPExperimenter(data='0',exp_type=65535,experimenter=6)
127.0.0.1 - - [05/Dec/2017 07:43:37] "POST /stats/experimenter/1
HTTP/1.1" 200 115 0.001436
EventOFPErrorMsg received.
version=0x4, msg_type=0x1, msg_len=0x1d, xid=0x2fd2e75f
`-- msg_type: OFPT_ERROR(1)
OFPErrorMsg(type=0x1, code=0x3,
data=b'\x04\x04\x00\x11\x2f\xd2\xe7\x5f\x00\x00\x00\x06\x00\x00\xff\xff\x30')
|-- type: OFPET_BAD_REQUEST(1)
|-- code: OFPBRC_BAD_EXPERIMENTER(3)
`-- data: version=0x4, msg_type=0x4, msg_len=0x11, xid=0x2fd2e75f
`-- msg_type: OFPT_EXPERIMENTER(4)
Thanks,
subha.
On Tue, Dec 5, 2017 at 1:11 PM, Iwase Yusuke <iwase.yusu...@gmail.com
<mailto:iwase.yusu...@gmail.com>> wrote:
Hi Subha,
How about the following?
Example:
experimenter = <Experimenter ID>
exp_type = <Experimenter defined type>
data = b'\x00\x00...' # as a raw binary data
msg = ofproto.OFPExperimenter(
datapath, experimenter=experimenter, exp_type=exp_type,
data=data)
datapath.send_msg(msg)
Thanks,
Iwase
On 2017年12月05日 15:44, Subha wrote:
Hi Team,
Can you pls let me know how to send an experimenter message
using ryu controller.
Any json file example ?
I referred the following example, but still not getting a
clear idea.
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#experimenter
<http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#experimenter>
Thanks,
subha.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
<mailto:Ryu-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel