> Hi there, > > For "ovs-ofctl add-flow" command, we can add such flow: > table=10, arp,in_port=4,arp_tpa=192.168.111.1,arp_op=1 > actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[], > mod_dl_src:fa:16:3e:67:13:fc,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[], > move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xc0a86f01->NXM_OF_ARP_SPA[], > load:0xfa163e6713fc->NXM_NX_ARP_SHA[], resubmit(,20),resubmit(,30) > > But how to add such flows via OPENFLOW13 for controllers to > ovs-vswitchd. We are using ryu as the controller, but in ovs-vswitchd, > we met such error: > > 2022-08-02T09:39:10.073Z|13069|connmgr|INFO|br-880ea359-4<->tcp:127.0.0.1:7733: > sending OFPBIC_DUP_INST error reply to OFPT_FLOW_MOD message > 2022-08-02T09:39:16.168Z|13070|connmgr|INFO|br-b247f145-5<->tcp:127.0.0.1:7733: > sending OFPBIC_DUP_INST error reply to OFPT_FLOW_MOD message > > Ryu controller instructions are: > instructions = [ > ofpp.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS, actions), > ofpp.OFPInstructionGotoTable(table_id=table1), > ofpp.OFPInstructionGotoTable(table_id=table2)] > > Is this possible? Or am I missing something?
Hi. There is a bit of misunderstanding here. 'resubmit' is an action and Open vSwitch extension. 'goto_table' is an OpenFlow instruction (not action). So, with ovs-ofctl you're adding a 'resubmit' action, but with Ryu you're trying to add 'goto_table' instructions. 'goto_table' must be the last instruction in a flow, so you can not add more than one of them. The 'resubmit' extension is more flexible. I hope that helps. Best regards, Ilya Maximets. _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss