Re: [Ryu-devel] A bug of ofctl_rest.py

2015-08-24 Thread Liu, Weijie
Thanks. That works! Please apply this patch. Weijie From: Yusuke Iwase [iwase.yusu...@gmail.com] Sent: Wednesday, August 19, 2015 20:37 To: Liu, Weijie Cc: ryu-devel@lists.sourceforge.net Subject: Re: [Ryu-devel] A bug of ofctl_rest.py Hi, On 2015年08月

[Ryu-devel] A bug of ofctl_rest.py

2015-08-19 Thread Liu, Weijie
Hi, I am using ofctl_rest.py and maybe find a bug. I used "match = parser.OFPMatch(metadata=(15,255), tunnel_id=(31,255))" as the match with OpenFlow 1.3. After that, I used "/stats/flow/" of ofctl_rest.py to see the flow rules. But it returned: Traceback (most recent call last): File "/h

[Ryu-devel] Find the type of instructions with ofctl_rest.py

2015-08-14 Thread Liu, Weijie
Hi, My goal: I want to run ofctl_rest.py and use the "GET /stats/flow/" to see the flow rules. Problem: I ran 2 experiments. I used OFPIT_APPLY_ACTIONS and OFPIT_WRITE_ACTIONS as the type of instructions, respectively. But the outputs of "GET /stats/flow/" were the same. Question: How can I te

[Ryu-devel] Fail to query Queue with ofctl_rest

2015-06-22 Thread Liu, Weijie
Hi, I was using Ryu 3.22 with Openflow 1.0 and tried to query the queue information of the switches. But it failed with 404. What I did: (1) sudo mn --controller remote --topo linear,3 (2) ryu-manager --observe-link rest_topology.py ofctl_rest.py (3) Then I used http://127.0.0.1:8080/stats/que

[Ryu-devel] About flow update notification of Ryu

2015-06-15 Thread Liu, Weijie
Hi, Does Ryu have any modules for this: If a flow rule is changed in the switch (added, modified or removed), the controller can generate a notification to the user. (for Openflow 1.0) make sense? thanks. Jason Liu --

[Ryu-devel] About the STP state of ports

2015-06-01 Thread Liu, Weijie
Hi, With Openflow 1.0, I used the http message, "GET /stats/portdesc/" of "ryu/ryu/app/ofctl_rest.py" to query the STP state of a port. In the return value of "GET /stats/portdesc/", the "state" field is 0, which means that port is in OFPPS_STP_LISTEN state. It means that port will not relay p

Re: [Ryu-devel] [Ryu] Output from ryu.app.ofctl_rest

2015-05-14 Thread Liu, Weijie
cards 'dl_dst': haddr_to_str(m.dl_dst), ... ... ... 'tp_dst': m.tp_dst} Then we can use the binary form of 'wildcards' to decide which fields are wildcarded or exactly matched. ___

[Ryu-devel] [Ryu] Output from ryu.app.ofctl_rest

2015-05-13 Thread Liu, Weijie
Hi, I have a question when I read the output of 'GET /stats/flow/1' of ryu.app.ofctl_rest. You know, I want to use this command to see the flow rules in a switch's flow table. My question: In "match", there is a field like "dl_vlan: 0". It can be considered as a wildcard matching; but it can a

[Ryu-devel] Ryu queries port vlan information

2015-05-06 Thread Liu, Weijie
Hi, Some ports of a switch are configured as trunk port or access port (or in other words, tagged port or untagged port). Can I use Ryu to query such kind of port information? Thanks -- One dashboard for servers and app

[Ryu-devel] About Ryu Event Dispatching

2015-04-09 Thread Liu, Weijie
Hi, I run two apps on Ryu, A and B. Both of them capture packet-in event. But it seems that at any time, only one of the two succeeds to capture the packet. How can I configure Ryu to let both of the two capture the same packet? I remember I have read about this but failed to find it out again.

[Ryu-devel] About new event defined by myself

2014-11-12 Thread Liu, Weijie
Hi, I just begin learning Ryu. I have a question: >From tutorial, I know how to write a handler function for some Openflow event, >e.g., pakcet-in. Now imagine that I would like to write some logic for some new event. For example, if I press a button in the keyboard, my Ryu app will send out s