Re: [Ryu-devel] How to let a RYU application to support a permanent socket server

2016-03-11 Thread David Gabriel
Hi Look at this example . It was suggested by Iwase. I used it to trigger & catch event and it is very useful. Hope it helps ... Kind regards 2016-03-10 12:54 GMT-08:00 Weiyang Mo : > Hi all, > > I

Re: [Ryu-devel] how to connect to another tcp server in ryu application?

2016-03-04 Thread David Gabriel
Hi Look at this example . It was suggested by Iwase and I used it to trigger & catch event and it is very useful. Hope it helps ... Kind regards 2016-03-04 0:14 GMT-08:00 俊 赵 : > Yes, I agree with

Re: [Ryu-devel] error: cannot convert argument to integer

2016-03-01 Thread David Gabriel
I fixed this issue. In fact I have to use the -O option to specify the openflow version ovs-ofctl dump-flows mybridge *-O OpenFlow13* Thanks. 2016-03-01 2:09 GMT-08:00 David Gabriel : > Dears > > Thanks Shinpei for your help. > I have fixed my issue but when I use this command &#x

Re: [Ryu-devel] error: cannot convert argument to integer

2016-03-01 Thread David Gabriel
nteger > of 8 bytes. > Are you set what to the argument metadata of OFPInstructionWriteMetadata()? > If you have set to metadata the value of non-integer, please you set to > metadata the value of integer of 8 bytes. > > > Thanks, > > > On 2016年02月29日 14:57, David Ga

Re: [Ryu-devel] error: cannot convert argument to integer

2016-02-28 Thread David Gabriel
t. If you are using the 32-bit environment, please try to operate in 64-bit environment. Thanks, On 2016年02月12日 07:10, David Gabriel wrote: > Dears > > I am getting this error when I set the writeMatadata instruction. > This is my code and below is the error I am getting. > >

[Ryu-devel] error: cannot convert argument to integer

2016-02-11 Thread David Gabriel
Dears I am getting this error when I set the writeMatadata instruction. This is my code and below is the error I am getting. inst = [parser.OFPInstructionWriteMetadata(metadata, 0x), parser.OFPInstructionGotoTable(3), ] mod = parser.OFPFlowMod(d

Re: [Ryu-devel] Modifying an entry by adding one action

2016-02-08 Thread David Gabriel
enhancing the action by adding new port ? Please tell me how to get the entry basing the destination address filter and how to get the corresponding action ? Thanks in advance. Regards 2016-02-08 2:30 GMT+01:00 Yusuke Iwase : > Hi, > > > On 2016年02月06日 01:58, David Gabriel wrot

Re: [Ryu-devel] write metadata and goto table for the same entry

2016-02-08 Thread David Gabriel
ded that you set 0x the metadata_mask. > > > Thanks, > > On 2016年02月05日 18:53, David Gabriel wrote: > > Thanks Shinpei Muraoka > > May I keep the metadata mask value empty in this way ? > > > > inst = [parser.OFPInstructionWriteMetadata(metadata_value), > pars

[Ryu-devel] Modifying an entry by adding one action

2016-02-05 Thread David Gabriel
Dears Is it possible to update/modify one entry by adding new action ? Please tell me the how to ? Thanks in advance. Regards -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RU

[Ryu-devel] send to many ports - and not OFPP_FLOOD

2016-02-05 Thread David Gabriel
Dears I want to add an entry that allows the forwording to multiple ports. Please note that I do not want to use the multicast OFPP_FLOOD. Is it possible to do it this way or there is other solution ? actions = [parser.OFPActionOutput(out_port1), parser.OFPActionOutput(out_port2),

Re: [Ryu-devel] write metadata and goto table for the same entry

2016-02-05 Thread David Gabriel
and set the goto table for the same match > fields. Could you please confirm if the below code is fine ? > > Your code is fine. > > Thanks, > > > On 2016年02月05日 01:49, David Gabriel wrote: > > Dears > > > > I want to write the metadata and set the goto table

[Ryu-devel] write metadata and goto table for the same entry

2016-02-04 Thread David Gabriel
Dears I want to write the metadata and set the goto table for the same match fields. Could you please confirm if the below code is fine ? ofproto = datapath.ofproto parser = datapath.ofproto_parser inst = [parser.OFPInstructionWriteMetadata(metadata_value, metadata_mask), parser.OFPInstructionGot

Re: [Ryu-devel] Error while getting vlan Id

2016-01-21 Thread David Gabriel
Thanks so much Victor for your help. Your code fixes my problem. 2016-01-21 4:35 GMT-08:00 Victor Orlikowski : > On Jan 21, 2016, at 5:33 AM, David Gabriel wrote: > > > I am getting an error when I want to get the *vlan id* of packets. > In fact, I am using the following co

[Ryu-devel] Error while getting vlan Id

2016-01-21 Thread David Gabriel
Dears, I am getting an error when I want to get the *vlan id* of packets. In fact, I am using the following code I found here pkt = packet.Packet(array.array('B', ev.msg.data)) for p in pkt: print p.protocol_name, p

Re: [Ryu-devel] periodic interaction with external data base

2016-01-15 Thread David Gabriel
call last): File "callRyu.py", line 37, in pass KeyboardInterrupt 2016-01-15 1:29 GMT+01:00 Yusuke Iwase : > Hi David, > > For defining "User Event", the following post may be helpful. > > http://sourceforge.net/p/ryu/mailman/ryu-devel/thread/5694B058.7

[Ryu-devel] Running Ryu application from thread call

2016-01-14 Thread David Gabriel
Dears It may be a strange a question but I am facing a problem to run Ryu in parallel with an other synchronization program. That's why I am wondering how to lanch Ryu application from a thread call. I tried the fellowing code but I got the bellow errors. Please advise me how shall I proceed ? Th

Re: [Ryu-devel] periodic interaction with external data base

2016-01-10 Thread David Gabriel
Dera Fujita and all, Please tell me where is the suitable place to initiate my event. Please note that I am using ldap as data base. Thanks in advance. Best regards 2016-01-07 16:17 GMT+01:00 FUJITA Tomonori : > On Wed, 6 Jan 2016 03:26:09 -0800 > David Gabriel wrote: > > > I

Re: [Ryu-devel] periodic interaction with external data base

2016-01-07 Thread David Gabriel
I am trying to modify the app_manager.py file in order to add a new thread using self.threads.append I am wondering if it is right what I am doing or you suggest something else. Please advise. Best regards 2016-01-07 10:33 GMT+01:00 David Gabriel : > I think the suitable way to handle t

[Ryu-devel] periodic interaction with external data base

2016-01-06 Thread David Gabriel
Dears, It is my first time to Ryu. I want to run an application that depends on: 1- openflow events (like simple switch app you provide in the tutorial) and also 2- external events (provided by an external Data Base - DB). In fact, I have a python scirpt that periodacally check my data base to ge