Re: [Ryu-devel] using ofctl_v1_0

2015-02-12 Thread Marlon Olaya
oh... that I did not think about that, thank you, I'll try another implementation to avoid the xid check, so I could take all reply messages and take the parameter that I need. thanks a lot. 2015-02-11 21:55 GMT-05:00 Minoru TAKAHASHI : > Hi, > > > I get a message in return of a request, but the

Re: [Ryu-devel] using ofctl_v1_0

2015-02-11 Thread Minoru TAKAHASHI
Hi, > I get a message in return of a request, but the msg.xid is not in > self.waiters, but I supposed that it would be there because > "send_stats_request" of ryu/lib/ofctl_V1_0.py > do it, ofctl_v1_0.py set the dpid and xid to waiters. https://github.com/osrg/ryu/blob/master/ryu/lib/ofctl_v1

Re: [Ryu-devel] using ofctl_v1_0

2015-02-09 Thread Marlon Olaya
Hi Minoru, I implemented the "stats_reply_handler" as you said, but I cant pass of this section in line 186 of https://github.com/osrg/ryu/blob/master/ryu/app/ofctl_rest.py#L689-L725 (ofctl_rest.py : if msg.x

Re: [Ryu-devel] using ofctl_v1_0

2015-01-28 Thread Minoru TAKAHASHI
Hi, On 2015年01月29日 06:11, Marlon Olaya wrote: > Hi, I'm triying to get the a flow stat, and i wanna use get_flow_stats(dp, > waiters) from ryu//lib/ofctl_v1_0.py and I use this function for that: > > def statusReq(self, datapath): > stats =[] > waiters = {} > stats= ofctl

[Ryu-devel] using ofctl_v1_0

2015-01-28 Thread Marlon Olaya
Hi, I'm triying to get the a flow stat, and i wanna use get_flow_stats(dp, waiters) from ryu//lib/ofctl_v1_0.py and I use this function for that: def statusReq(self, datapath): stats =[] waiters = {} stats= ofctl.get_flow_stats(dp=datapath,waiters=waiters) print "St