Hi

The following code add a data flow rule in all switches in the network.
------------------------------------------------------------------------------------------------------------------------------------------------
@set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)
def switch_features_handler(self, ev):
               datapath = ev.msg.datapath
               ofproto = datapath.ofproto
               ofp = datapath.ofproto
               parser = datapath.ofproto_parser


               match = parser.OFPMatch()
               actions = [parser.OFPActionOutput(ofp.OFPP_NORMAL, 
ofproto.OFPCML_NO_BUFFER)]
               inst = 
[parser.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS,actions)]
               self.add_flow(datapath=datapath, command=ofp.OFPFC_ADD, 
priority=1, match=match, instructions=inst)

My question is,
Suppose a network consists of 4 switches. How to add data flows with different 
priorities at switches?
I will be really grateful if you kindly elaborately discuss the process with 
coding details.



Thanks in advance :)
-Tanvir



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

Reply via email to