Hi,

To get more log messages, how about adding "--verbose" option to ryu-manager?
On my environment, the following errors ware shown.

$ ryu-manager --verbose myapp.py
...
EventOFPErrorMsg received.
version=0x4, msg_type=0x1, msg_len=0x4c, xid=0xe3ab9a29
  `-- msg_type: OFPT_ERROR(1)
OFPErrorMsg(type=0x2, code=0xa, 
data=b'\x04\x0e\x00\x68\xe3\xab\x9a\x29\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x14\x00\x01\xd2\x04\x00\x00\x00\x00\x80\x00\x00\x04')
  |-- type: OFPET_BAD_ACTION(2)
  |-- code: OFPBAC_MATCH_INCONSISTENT(10)
  `-- data: version=0x4, msg_type=0xe, msg_len=0x68, xid=0xe3ab9a29
      `-- msg_type: OFPT_FLOW_MOD(14)

My OVS version may not support contrack though...

Thanks,
Iwase


On 2016年04月14日 16:21, Marian Mihailescu wrote:
> Hi,
>
> I'm using RYU as controller for OpenVSwitch, and I want to use conntrack.
>
> For example:
>
> ovs-ofctl -OOpenFlow13 add-flow br0
> "table=0,in_port=3,ct_state=-trk,actions=ct(table=30)"
>
> works nicely from command line, the flow is added.
>
> How can I do this from RYU?
>
> I have tried:
>
> ct_match = parser.OFPMatch(in_port=port,ct_state=0)
> ct_actions = [parser.NXActionCT(flags=0, zone_src=0, zone_ofs_nbits=0,
> recirc_table=30, alg=0, actions=[])]
> ct_instructions = []
>
> but it did not work, Actually, I just having "ct_state=0" in a match,
> no action and a goto_table instruction, results in no flow added. I
> also tried an already working match with the NXActionCT, and no flow
> was added. There was no error.
>
> This is how the match and action were printed out:
>
> OFPMatch(oxm_fields={'in_port': 3, 'ct_state': 0})
> [OFPInstructionGotoTable(len=8,table_id=20,type=1),
> OFPInstructionActions(actions=[NXActionCT(actions=[],alg=0,experimenter=8992,flags=0,len=None,recirc_table=30,subtype=35,type=65535,zone_ofs_nbits=0,zone_src=0)],type=4)]
>
> Any help is appreciated!
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to