Hi,
On 2015年11月18日 13:47, Anees Mohsin Hadi Al-Najjar wrote:
> Dear All,
>
>
>
> I am trying to implement Group Table, but I couldn’t.
>
> Could you possible help me with that.
>
>
>
> My code is :
>
>
>
> *buckets = [] *
>
> * *
>
> * weight=1*
Please weight field set to 0.
"7.3.4.2 Modify Group Entry Message" in OFspec1.3.4 says:
The weight field is only defined for select groups,
and its support is optional. For other group types,
this fields must be set to 0.
And, I would recommend you to use --verbose option as follows.
ex.
# ryu-manager [app_name] --verbose
Then, it may becomes easier to find out errors.
*** Output Example ***
EventOFPErrorMsg received.
version=0x4, msg_type=0x1, msg_len=0x4c, xid=0x55572dbb
`-- msg_type: OFPT_ERROR(1)
OFPErrorMsg(type=0x6, code=0x1,
data=b'\x04\x0f\x00\x40\x55\x57\x2d\xbb\x00\x00\x00\x00\x00\x00\x00\x01\x00\x30\x00\x01\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x19\x00\x10\x80\x00\x16\x04\x0a\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x02\xff\xe5\x00\x00\x00\x00\x00\x00')
|-- type: OFPET_GROUP_MOD_FAILED(6)
|-- code: OFPGMFC_INVALID_GROUP(1)
`-- data: version=0x4, msg_type=0xf, msg_len=0x40, xid=0x55572dbb
`-- msg_type: OFPT_GROUP_MOD(15)
thanks,
>
> * watch_port= ofproto.OFPP_ANY*
>
> * watch_group= ofproto.OFPG_ANY*
>
> * group_id= 1*
>
> * *
>
> * actions = []*
>
> * actions.append(parser.OFPActionSetField(ipv4_src="10.0.0.3")) *
>
> * actions.append(parser.OFPActionOutput(2)) *
>
> * *
>
> * buckets.append(parser.OFPBucket(weight, watch_port,
> watch_group,actions))*
>
> * *
>
> * *
>
> * req = parser.OFPGroupMod(datapath, ofproto.OFPGC_ADD,
> ofproto.OFPGT_ALL, group_id, buckets)*
>
> * datapath.send_msg(req)*
> **
>
> * #### *
>
> * match=parser.OFPMatch(eth_type=0x0800)*
>
> * actions=[]*
>
> * actions = [parser.OFPActionGroup(1)]*
>
> * inst =
> [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,actions)]*
>
> *
> mod=parser.OFPFlowMod(datapath=datapath,priority=2,idle_timeout=0,hard_timeout=0,match=match,instructions=inst)*
>
> * datapath.send_msg(mod)*
>
> * *
>
> I got this error:
>
> * *
>
> *EVENT ofp_event->My_Ryu EventOFPSwitchFeatures*
>
> *switch features ev version: 0x4 msg_type 0x6 xid 0xbcec82d3
> OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=257,n_buffers=256,n_tables=254)*
>
> *move onto main mode*
>
> *error msg ev version: 0x4 msg_type 0x1 xid 0xbcec82da
> OFPErrorMsg(code=1,data='\x04\x0f\x00`\xbc\xec\x82\xda\x00\x00\x00\x00\x00\x00\x00\x01\x00P\x00\x01\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x19\x00\x10\x80\x00\x16\x04\xc0\xa8\n\x01\x00\x00\x00\x00\x00\x19\x00\x10\x80\x00\x08\x06\x00\x00\x00\x00\x01\x01\x00\x00\x04\x01\x00L\xbc\xec\x82\xdb',type=6)
> type 0x6 code 0x1 0x4 0xf 0x0 0x60 0xbc 0xec 0x82 0xda 0x0 0x0 0x0 0x0 0x0
> 0x0 0x0 0x1 0x0 0x50 0x0 0x1 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x0 0x0
> 0x0 0x0 0x0 0x19 0x0 0x10 0x80 0x0 0x16 0x4 0xc0 0xa8 0xa 0x1 0x0 0x0 0x0 0x0
> 0x0 0x19 0x0 0x10 0x80 0x0 0x8 0x6 0x0 0x0 0x0 0x0 0x1 0x1 0x0 0x0 0x4 0x1
> 0x0 0x4c 0xbc 0xec 0x82 0xdb*
>
> *error msg ev version: 0x4 msg_type 0x1 xid 0xbcec82db
> OFPErrorMsg(code=9,data='\x04\x0e\x00P\xbc\xec\x82\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x0f\x80\x00\n\x02\x08\x00\x80\x00\x14\x01\x06\x00',type=2)
> type 0x2 code 0x9 0x4 0xe 0x0 0x50 0xbc 0xec 0x82 0xdb 0x0 0x0 0x0 0x0 0x0
> 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2
> 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1
> 0x0 0xf 0x80 0x0 0xa 0x2 0x8 0x0 0x80 0x0 0x14 0x1 0x6 0x0*
>
>
>
>
>
>
>
> Thanks for helping
>
>
>
>
>
>
>
>
>
> Anees AL-Najjar
>
> RHD Student*
> *School of Information Technology and Electrical Engineering (ITEE)
> Office: 331, Building (78)
>
> University of Queensland
>
> Emails: 1- [email protected] <mailto:[email protected]>
>
> [email protected] <mailto:[email protected]>
>
> Moibile: +61420407168
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> 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