Hi,

> but I do not have no idea how to use this code in simple_switch_13.py

It depends on when you want to install that flow with your apps.
If when the controller gets Packet-In, you should implement it in 
_packet_in_handler(),
or when the connection are established, please implement it in 
switch_features_handler().

Thanks,
Iwase


On 2015年04月16日 00:11, 詹翔宇 wrote:
> Hello  FUJITA Tomonori :
> 
> I want to use the code below for adding flow,
> 
> match = parser.OFPMatch(eth_type=0x800, 
> ipv4_src=("192.168.1.0","255.255.255.0"))
> actions = [parser.OFPActionOutput(3)]
> inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,
>                                      actions)]
> mod = parser.OFPFlowMod(datapath=datapath, priority=11111,
>                         match=match, instructions=inst)
> datapath.send_msg(mod)
> 
> but I do not have no idea how to use this code  in simple_switch_13.py
> 
> How should I do?   THX.
> 
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to