Re: [Ryu-devel] adding flow without flooding using python code

2015-04-15 Thread Yusuke Iwase
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 swi

Re: [Ryu-devel] Stp on Openvswitch

2015-04-15 Thread Yusuke Iwase
Hi Vardhan, Hmm... Could you capture the packets on the configured switch, and confirm that switches are sending and receiving STP packets? Because the notification messages have not been seen on the log, which messages show the switch received STP packets (BPDU). e.g.) the notification message

Re: [Ryu-devel] Confusing performance of topology_api_app

2015-04-15 Thread Yusuke Iwase
Hi Sakib, You mean that all the link should include switch-switch links AND switch-host links, right? If so, topology.api module discovers switch-switch links ONLY. The reason which I'm estimating is ... topology.api module uses LLDP packet to observe links, but the hosts has no way to do Packet-

[Ryu-devel] Reg: Executing simple_switch_rest_13.py

2015-04-15 Thread Rishi Sahay
Hello, I am new to the RYU controller. I am trying to learn the REST API. when I am executing the simple_switch_rest_13.py program given in the RYU book in chapter 3 it is not working. ryu.controller.ofp_handler is not getting loaded. It is showing the message as follows: loading app ./simple_sw

[Ryu-devel] Confusing performance of topology_api_app

2015-04-15 Thread MD.Badruzzaman Shakib
Hello I am using topology_api_app module to get the switch and link information of my topology. My code is something as below- @set_ev_cls(event.EventSwitchEnter) def get_topology_data(self, ev):     switch_list = get_switch(self.topology_api_app, None)     switches=[switch.dp.id for swi

Re: [Ryu-devel] adding flow without flooding using python code

2015-04-15 Thread 詹翔宇
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, act

Re: [Ryu-devel] adding flow without flooding using python code

2015-04-15 Thread 詹翔宇
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, act

Re: [Ryu-devel] Parsing DNS packets with Ryu?

2015-04-15 Thread Matthew Hayes
Hi Yi, I've had a go at getting your dns.py code running, but can't get it working yet. I created the dns.py file in ryu/ryu/lib/packet, with your code in it, and updated nmeta tc_policy.py to import it: from ryu.lib.packet import dns if pkt_udp: if pkt_udp.src_port

Re: [Ryu-devel] How to monitor packets being dropped? Sent back a packet back to the port where it came from?

2015-04-15 Thread Clément Rault
What I refer to is what is explained here : http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=FAQ;hb=HEAD in the question "Q: I added a flow to send packets out the ingress port, like this: ovs-ofctl add-flow br0 in_port=2,actions=2 but OVS drops the packets instead." B

Re: [Ryu-devel] The question

2015-04-15 Thread Николай Жупиков
Thank you Yusuke Iwase! Среда, 15 апреля 2015, 15:40 +09:00 от Yusuke Iwase : >Hi, > >On 2015年04月13日 20:58, Николай Жупиков wrote: >> Could you write a sample code which uses OF1.5 tcp_flags ryu in any >> application? > >Please refer to the following. >This example is for OpenFlow1.4, but simil

Re: [Ryu-devel] Stp on Openvswitch

2015-04-15 Thread FIXED-TERM Vardhan Harsha (CR/AEH4)
Hi Iwase, In the current config only three switches which are specified are connecting. There was an error before which has now been sorted. Mit freundlichen Grüßen / Best regards Harsha Vardhan Communication Technology (CR/AEH4) fixed-term.harsha.vard...@de.bosch.com -Ursprüngliche Na

Re: [Ryu-devel] OFPErrorMsg code=9, type=4

2015-04-15 Thread Vishlesh Patel
Hi Iwase, Thanks again for the prompt reply. Thanks Vishlesh On Wed, Apr 15, 2015 at 3:45 AM, Yusuke Iwase wrote: > Hi Vishlesh, > > For openFlow v1.3, please refer to the TOP-page of the Ryu-certification > again. > (http://osrg.github.io/ryu/certification.html) > > But for openFlow v1.5, I

Re: [Ryu-devel] Stp on Openvswitch

2015-04-15 Thread FIXED-TERM Vardhan Harsha (CR/AEH4)
Hi Iwase, And the extra switch is normal switch. And the Ovs switches are specified. Mit freundlichen Grüßen / Best regards Harsha Vardhan Communication Technology (CR/AEH4) fixed-term.harsha.vard...@de.bosch.com -Ursprüngliche Nachricht- Von: Yusuke Iwase [mailto:iwase.yusu...@gma

Re: [Ryu-devel] Stp on Openvswitch

2015-04-15 Thread FIXED-TERM Vardhan Harsha (CR/AEH4)
Hi Iwase , My topology is like this: controller | extra switch--- | | |

Re: [Ryu-devel] OFPErrorMsg code=9, type=4

2015-04-15 Thread Yusuke Iwase
Hi Vishlesh, For openFlow v1.3, please refer to the TOP-page of the Ryu-certification again. (http://osrg.github.io/ryu/certification.html) But for openFlow v1.5, I could not find the same docs. Thanks, Iwase On 2015年04月15日 16:32, Vishlesh Patel wrote: > Hi Yusuke, > > do you have know the s

Re: [Ryu-devel] OFPErrorMsg code=9, type=4

2015-04-15 Thread Vishlesh Patel
Hi Yusuke, One more thing I want to ask regarding PushPbb action : I implemented the same code on Pica8 switch in our laboratory and actually it worked , allowed implementing pushPbb action on pica8. Actually, this pica8 switch uses openFlow v1.3 implementation of OVS. That means, if OVS doesn't

Re: [Ryu-devel] Stp on Openvswitch

2015-04-15 Thread Yusuke Iwase
Hi Vardhan, How is your topology including the two extra switches? In case like the following, please check whether the extra switch drops STP packets from the specified switches or not. e.g.) specified-switch extra-switch specified-switch |

Re: [Ryu-devel] OFPErrorMsg code=9, type=4

2015-04-15 Thread Vishlesh Patel
Hi Yusuke, do you have know the same documentation for openFlow v1.3 and openFlow v1.5 too for OVS. I tried looking over ryu-certification github repo but I can't find for 1.3 or 1.5. if you have any other source please share. Thanks a lot. Thanks vishlesh On Wed, Apr 15, 2015 at 3:03 AM, Vish

Re: [Ryu-devel] Error in api.py under ryu/ryu/topology/api.py

2015-04-15 Thread Ruchika Luthra
Thank you Minoru. I got your point and it worked well. Is there any way to know which ports of the switch are connected to other switches and which ports to the hosts? Thank you On Wed, Apr 15, 2015 at 4:09 AM, Minoru TAKAHASHI < takahashi.mino...@gmail.com> wrote: > Hi, > > On 2015年04月14日 17:1

Re: [Ryu-devel] OFPErrorMsg code=9, type=4

2015-04-15 Thread Vishlesh Patel
Hi Yusuke, Thank you very much for the reply. That documentation will be very helpful for me. It will help me a lot to figure out whether my code is having bug or not. Thanks Vishlesh On Wed, Apr 15, 2015 at 2:58 AM, Yusuke Iwase wrote: > Hi Vishlesh, > > Please refer to the Ryu-certification.

Re: [Ryu-devel] OFPErrorMsg code=9, type=4

2015-04-15 Thread Yusuke Iwase
Hi Vishlesh, Please refer to the Ryu-certification. The following shows that OVS does not support push and pop pbb actions in Openflow1.4. (http://osrg.github.io/ryu-certification/switch/of14/ovs) Thanks, Iwase On 2015年04月15日 08:10, Vishlesh Patel wrote: > Hello, > > I am making a ryu app whi