On Thu, 19 Apr 2018 17:58:21 +0900,
nadia mouawad wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; UTF-8 (7bit)>]
> hello,
> I have a question about group tables. I am trying to add a group table
> using the following method:
> 
> def send_group_mod(self, datapath,):
> ofproto = datapath.ofproto
> ofp_parser = datapath.ofproto_parser
> port_1 = 3
> queue_1 = ofp_parser.OFPActionSetQueue(0)
> actions_1 = [queue_1, ofp_parser.OFPActionOutput(port_1)]
> port_2 = 2
> queue_2 = ofp_parser.OFPActionSetQueue(0)
> actions_2 = [queue_2, ofp_parser.OFPActionOutput(port_2)]
> weight_1 = 50
> weight_2 = 50
> watch_port = ofproto_v1_3.OFPP_ANY
> watch_group = ofproto_v1_3.OFPQ_ALL
> buckets = [
> ofp_parser.OFPBucket(weight_1, watch_port, watch_group, actions_1),
> ofp_parser.OFPBucket(weight_2, watch_port, watch_group, actions_2)]
> group_id = 50
> req = ofp_parser.OFPGroupMod(datapath, ofproto.OFPFC_ADD,
> ofproto.OFPGT_SELECT, group_id, buckets)
> datapath.send_msg(req)
> 
> 
> However, when the method is called , the ping stops and no flow rules are
> added to the switch with actions: group:50
> 
> Can you help me to figure out where is the problem?

Did you get any OpenFlow error messages? If not, the group entry
should have been set.
I guess you can use ovs-ofctl dump-groups and dump-group-stats for
debugging.

--
IWAMOTO Toshihiro

------------------------------------------------------------------------------
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

Reply via email to