Hi


I tried to use the following code to add a data flow which has two specific 
actions operations: OFPActionSetField, and OFPActionOutput.


match = parser.OFPMatch(eth_src='00:00:00:00:00:04', 
eth_dst='00:00:00:00:00:07')
actions = 
[parser.OFPActionSetField(parser.OFPMatchField.make(ofproto.OXM_OF_IP_DSCP, 
32)), parser.OFPActionOutput(3)]
inst = [parser.OFPInstructionActions(ofp.OFPIT_WRITE_ACTIONS,actions)]
self.add_flow(datapath=datapath,  priority=10, match=match, instructions=inst)

Although it is not showing any error but the rule (two actions operations) is 
not accepted by the switch. the other part of the coding is ok, and working 
perfectly fine.

I want to mark the data packet flow (IP_DSCP). Could you please modify the code 
in the right way for me ?

Thanks in advance ;)
-Tanvir


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to