Hi


I want to add a data flow with priority 1, and after passing 5 seconds I want 
to change its priority to 10. I have used the following code to implement this 
concept. But, it is not working :)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

         match = parser.OFPMatch(eth_src='01:00:00:00:01:00', 
eth_dst='02:00:00:00:02:00')
        actions = [parser.OFPActionOutput(2)]
priority1 = 1
command=ofproto.OFPFC_ADD
inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS, actions)]
        self.add_flow(datapath, command, priority1, match, inst)


time.sleep(5)

flow_del = parser.OFPFlowMod(datapath=datapath, priority=10, match=match, 
command=ofproto.OFPFC_MODIFY, buffer_id= ofproto.OFP_NO_BUFFER,  
instructions=inst)
datapath.send_msg(flow_del)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

would you please show me the way to do it?

Please note that  as far as I know that the priority changing is not possible 
by using the "OPFActionsetfield" option. Because priority is not supported by 
the "OFPMatch".


Thanks in advance.
-Tanvir

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

Reply via email to