Re: [Ryu-devel] ryu-manager can't load app from file which has same name as installed module

2017-04-09 Thread Brad Cowie
Hi Iwase, You are quite right I forgot to copy that part of the code over. I have attached a refreshed patch that restores sys.path after a file is imported. Let me know what you think! Brad On 10 April 2017 at 14:22, Iwase Yusuke wrote: > Hi Brad, > > Great! Thanks

Re: [Ryu-devel] Adding functionality in Ryu

2017-04-09 Thread Yi Tseng
Hi, Currently Ryu is focus on using OpenFlow protocol to control dataplane. I think there is no specific OpenFlow message for power control. However, you still can use Ryu to do that, in my opinion, there are two options: 1. Modify your dataplane (e.g. WiFi AP), make it support OpenFlow, and

Re: [Ryu-devel] ryu-manager can't load app from file which has same name as installed module

2017-04-09 Thread Iwase Yusuke
Hi Brad, Great! Thanks a lot! It looks almost good to me. A few remarks, if update sys.path before importing module file, I guess we need to backup the original sys.path and restore it before returning module instance as following. https://github.com/osrg/ryu/blob/master/ryu/utils.py#L96-L97

Re: [Ryu-devel] help--rest_vtep

2017-04-09 Thread Iwase Yusuke
Hi, Thank you for reporting! On 2017年04月09日 20:31, Tessy Thomas wrote: > hi. > i followed http://ryu.readthedocs.io/en/latest/app/rest_vtep.html .. but i am > very new to ryu,..can someone kindly help me to run it. > > cd ryu1 > ryu-manager ryu/app/rest_vtep.py > > cd ryu2 > ryu-manager

Re: [Ryu-devel] Decoding explicitly RYU messages

2017-04-09 Thread Fujimoto Satoshi
Hi, Jibran Sorry for cutting in. FYI, in RYU, you can decode your OpenFlow message like this: @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER) def _packet_in_handler(self, ev): msg = ev.msg.to_jsondict() print(json.dumps(msg, indent=4)) And you can get: { "OFPPacketIn": {

Re: [Ryu-devel] Decoding explicitly RYU messages

2017-04-09 Thread Jibran Ahmed
Thank you very much for the information Bill! Jibran > On Apr 9, 2017, at 3:19 PM, William Fisher wrote: > > The data field is the packet data for the Packet-In message in hex. I > took the data snippet from your message (with python string escapes) > and entered

Re: [Ryu-devel] Decoding explicitly RYU messages

2017-04-09 Thread William Fisher
The data field is the packet data for the Packet-In message in hex. I took the data snippet from your message (with python string escapes) and entered the following in a python 2.7 interpreter: >>>

Re: [Ryu-devel] Decoding explicitly RYU messages

2017-04-09 Thread Jibran Ahmed
Hello Bill, Thank you for your response! The output is very similar to our requirement! Could you please tell me how the data field was populated? Thanks once again! Jibran > On Apr 9, 2017, at 12:57 AM, William Fisher > wrote: > > I'm not completely sure what

[Ryu-devel] ImportError: cannot import name poll

2017-04-09 Thread Soliman Awad Alshra´a Abdullah TU Ilmenau
Hi everyone, I am trying to launch https://github.com/OpenState-SDN/spider when I try to Launch SPIDER: $ cd ~/spider/src $ sudo ryu-manager SPIDER_ctrl_WEBAPP.py I get Traceback (most recent call last): File "/usr/local/bin/ryu-manager", line 9, in load_entry_point('ryu==3.29',

[Ryu-devel] help--rest_vtep

2017-04-09 Thread Tessy Thomas
hi. i followed http://ryu.readthedocs.io/en/latest/app/rest_vtep.html .. but i am very new to ryu,..can someone kindly help me to run it. cd ryu1 ryu-manager ryu/app/rest_vtep.py cd ryu2 ryu-manager ryu/app/rest_vtep.py ovs-vsctl add-br s1-ovs ovs-vsctl set-controller s1-ovs