On Fri, 04 Jan 2019 20:32:14 +0900, Ramzah Rehman wrote: > I tried to add a Group Entry in my OVS version 2.8.6 switch via RYU > controller using ofproto_v1_5 (switch has been configured to support > OpenFlow 1.5 ). I found send_group_mod > <https://ryu.readthedocs.io/en/latest/ofproto_v1_5_ref.html> function here. > I used the exact code to check if it's working but got this > OFPGMFC_BAD_BUCKET(12) error.
> Anyhow, since I had been initializing my OFPButcket wrongly, I > modified my code as follows. This time, the actions list was being set > properly in the bucket but still, I got bad_BUCKET(12) error. Please > help. > *Modified Code:* > > def send_group_mod(self, datapath): > ofp = datapath.ofproto > ofp_parser = datapath.ofproto_parser > > port = 1 > max_len = 2000 > actions = [ofp_parser.OFPActionOutput(port, max_len)] > > weight = 100 > #watch_port = ofproto_v1_5.OFPP_ANY > #watch_group = ofproto_v1_5.OFPQ_ALL > > bucket = datapath.ofproto_parser.OFPBucket(bucket_id=1, > actions=actions, properties=None, len_=32,action_array_len=None) > buckets = [bucket] > #buckets = [ofp_parser.OFPBucket(weight, watch_port, > watch_group,actions)] > > group_id = 1 > command_bucket_id = 1 > req = ofp_parser.OFPGroupMod(datapath, ofp.OFPGC_ADD, > ofp.OFPGT_SELECT, group_id, > command_bucket_id, buckets) > datapath.send_msg(req) > > *Error:* > > EventOFPErrorMsg received. > version=0x6, msg_type=0x1, msg_len=0x3c, xid=0x1d46ee73 > `-- msg_type: OFPT_ERROR(1) > OFPErrorMsg(type=0x6, code=0xc, > data=b'\x06\x0f\x00\x30\x1d\x46\xee\x73\x00\x00\x01\x00\x00\x00\x00\x01\x00\x18\x00\x00\x00\x00\x00\x01\x00\x18\x00\x10\x00\x00\x00\x01\x00\x00\x00\x10\x00\x00\x00\x01\x07\xd0\x00\x00\x00\x00\x00\x00') > |-- type: OFPET_GROUP_MOD_FAILED(6) > |-- code: OFPGMFC_BAD_BUCKET(12) > `-- data: version=0x6, msg_type=0xf, msg_len=0x30, xid=0x1d46ee73 > `-- msg_type: OFPT_GROUP_MOD(15) ovs-vswitchd should emit warn logs when returning those BAD_BUCKET errors, if the verbose level is set appropriately. Please check ovs-vswitchd log level settings and its log file. -- IWAMOTO Toshihiro _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel