Hello all,
I am developing my first application in ryu.
I am attempting to create a fast failover table and add some buckets.
I add a new group table as follows:
def create_group_table(self, datapath, groupid):
ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
group_id = groupid
req = ofp_parser.OFPGroupMod(datapath,ofp.OFPGC_ADD,
ofp.OFPGT_FF, group_id)
datapath.send_msg(req)
and attempt to add buckets from a list of watch ports:
def send_group_table(self,datapath,groupid,watchports):
ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
group_id = groupid
actions = [ofp_parser.OFPActionOutput(x) for x in watchports]
buckets = [(ofp_parser.OFPBucket(weight = 50,
watch_port=x,
actions =
[ofp_parser.OFPActionOutput(x)] ))
for index, x in enumerate(watchports)]
req = ofp_parser.OFPGroupMod(datapath,ofp.OFPGC_MODIFY,
ofp.OFPGT_FF, group_id, buckets)
datapath.send_msg(req)
I see the group table created:
sudo ovs-ofctl -O OpenFlow13 dump-groups s1
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=1,type=ff
but I do not see the buckets I tried to add: any idea how to debug this?
Thanks, Chris
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel