[ovs-discuss] OFPET_FLOW_MOD_FAILED

Ajinkya D Kadam ajinkya.kadam at nyu.edu
Thu Nov 3 09:14:38 UTC 2016


HI All,

I am doing a simple experiment to add a default table miss flow entry to a
hardware OpenFlow Switch. Below are the details of the tools I  am using

Controller : RYU
OpenFlow Switch : FortiCore 3700E
OF_version : 1.3

I am using the example code (example_switch_13.py) available in ryu/app.


*ERROR :*

loading app ryu/ryu/app/example_switch_13.py
loading app ryu.controller.ofp_handler
instantiating app ryu/ryu/app/example_switch_13.py of ExampleSwitch13
instantiating app ryu.controller.ofp_handler of OFPHandler
BRICK ExampleSwitch13
  CONSUMES EventOFPPacketIn
  CONSUMES EventOFPSwitchFeatures
BRICK ofp_event
  PROVIDES EventOFPPacketIn TO {'ExampleSwitch13': set(['main'])}
  PROVIDES EventOFPSwitchFeatures TO {'ExampleSwitch13': set(['config'])}
  CONSUMES EventOFPSwitchFeatures
  CONSUMES EventOFPErrorMsg
  CONSUMES EventOFPEchoRequest
  CONSUMES EventOFPEchoReply
  CONSUMES EventOFPHello
  CONSUMES EventOFPPortStatus
  CONSUMES EventOFPPortDescStatsReply
connected socket:<eventlet.greenio.base.GreenSocket object at
0x7fddad9259d0> address:('10.2.1.35', 25656)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fddad932290>
move onto config mode
EVENT ofp_event->ExampleSwitch13 EventOFPSwitchFeatures
switch features ev version=0x4,msg_type=0x6,msg_len=0x20,xid=0xa5440ccd,
OFPSwitchFeatures(auxiliary_id=0,capabilities=5,datapath_
id=158796421868064,n_buffers=0,n_tables=1)


This is the port :   4294967293
Buffer Id is :  65535



Actions :  [OFPActionOutput(len=16,max_len=65535,port=6633,type=0)]


Instructions :  [OFPInstructionActions(actions=[OFPActionOutput(len=
16,max_len=65535,port=6633,type=0)],type=4)]


modification  :  version=None,msg_type=None,msg_len=None,xid=None,
OFPFlowMod(buffer_id=65535,command=0,cookie=0,cookie_
mask=0,flags=0,hard_timeout=0,idle_timeout=0,instructions=[
OFPInstructionActions(actions=[OFPActionOutput(len=16,max_
len=65535,port=6633,type=0)],type=4)],match=OFPMatch(oxm_
fields={}),out_group=0,out_port=0,priority=0,table_id=0)

move onto main mode
EventOFPErrorMsg received.
version=0x4, msg_type=0x1, msg_len=0x4c, xid=0xa5440ccf
 `-- msg_type: OFPT_ERROR(1)
OFPErrorMsg(type=0x5, code=0x0, data=b'\x04\x0e\x00\x50\xa5\
x44\x0c\xcf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x04\x00\x18\x00\x00\x00\x00')
 |-- type: OFPET_FLOW_MOD_FAILED(5)
 |-- code: OFPFMFC_UNKNOWN(0)
 `-- data: version=0x4, msg_type=0xe, msg_len=0x50, xid=0xa5440ccf
     `-- msg_type: OFPT_FLOW_MOD(14)



Modified Application Script is attached. I have printed out the values of
the variables however I am not able to figure out whats going wrong when I
am sending the* flow_mod. *

Can someone please suggest me how i can resolve this error ?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20161103/f14d6fcf/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example_switch_13.py
Type: text/x-python
Size: 4208 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20161103/f14d6fcf/attachment-0002.py>


More information about the discuss mailing list