Re: [pox-dev] Timer function acts strange when called sequentially

2013-10-30 Thread vinay pai
Hi Murphy, Works like a charm! I was a novice on generators and yield but now I know that its a great thing! Thanks for all your help! Have a Great Day! Regards, Vinay Pai B.H. On Wed, Oct 30, 2013 at 1:58 AM, Murphy McCauley wrote: > On Oct 30, 2013, at 12:47 AM, vinay pai wrote: > > Hi M

Re: [pox-dev] Timer function acts strange when called sequentially

2013-10-30 Thread Murphy McCauley
On Oct 30, 2013, at 12:47 AM, vinay pai wrote: > Hi Murphy, > > Thanks alot for the immediate response! > > This certainly helped me but I am hitting another snag when using Task and > unfortunately theres not alot of documentation so I would be grateful if you > could help me out on this. Y

Re: [pox-dev] Timer function acts strange when called sequentially

2013-10-30 Thread vinay pai
Hi Murphy, Thanks alot for the immediate response! This certainly helped me but I am hitting another snag when using Task and unfortunately theres not alot of documentation so I would be grateful if you could help me out on this. Please see attachment for code. What I am trying to achieve is aut

Re: [pox-dev] Timer function acts strange when called sequentially

2013-10-29 Thread Murphy McCauley
Timers are independent, so what you are seeing is the expected behavior. How is your "X" factoring into the example? It appears they should continue forever... unless you have something (not shown) which cancels them. If so, that's pretty much the answer to your question: to get them to be seq

[pox-dev] Timer function acts strange when called sequentially

2013-10-28 Thread vinay pai
Hi All, I am trying to write an application which automates and pushes flows so that I can test the functionality of my switch. However I am encountering a small problem. What I am trying to achieve is as follows: ...and so on Python code wise: Timer(10,app,recurring = True, args=["port",0])