10-06-2017 12:52 PM - edited 03-05-2019 09:15 AM
Using Cisco Plug-in for OpenFlow on a Catalyst 3850, I would like to add a flow entry that matches on some fields and performs an action combination, in which both the destination IPv4 address and destination TCP port are modified. I am using Ryu as my controller and here's the relevant piece of the code:
actions = [parser.OFPActionSetField(tcp_dst=33333), parser.OFPActionSetField(ipv4_dst="1.2.3.4"), parser.OFPActionOutput(out_port)]
When I run it I get the following error message:
EventOFPErrorMsg received. version=0x4, msg_type=0x1, msg_len=0x4c, xid=0x110e2025 `-- msg_type: OFPT_ERROR(1) OFPErrorMsg(type=0x1, code=0x5, data=b'\x04\x0e\x00\x90\x11\x0e\x20\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x25\x80\x00\x00\x04\x00\x00\x13\xea\x80\x00\x0a\x02') |-- type: OFPET_BAD_REQUEST(1) |-- code: OFPBRC_EPERM(5) `-- data: version=0x4, msg_type=0xe, msg_len=0x90, xid=0x110e2025 `-- msg_type: OFPT_FLOW_MOD(14)
The code runs with no issues when I try to modify source IPv4 address and source TCP port:
actions = [parser.OFPActionSetField(tcp_src=33333), parser.OFPActionSetField(ipv4_src="1.2.3.4"), parser.OFPActionOutput(out_port)]
The configuration guide says that:
Some action combinations which are not supported may be rejected at flow programming time.
But there is no information on what action combinations are allowed. I'm a bit surprised that changing source IPv4 address and TCP port is allowed but changing destination IPv4 address and TCP port is not!
I'm wondering if what I'm looking for can be achieved with the Cisco Plug-in for OpenFlow.
05-09-2018 01:08 PM
02-07-2019 08:29 AM
I know it is a very old post but I would really appreciate any help. I have installed openflow plugin and it is connected to RYU controller. However, it does not really respond to any actions from the controller. Were you able to make them work together (I mean RYU controller and openflow plugin on c3850 switch)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide