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:

<call *function_1()* 'X' times with a timeout of 'Y' seconds with *arguments
'J' and 'K'*>
<call *function_1()* 'X' times with a timeout of 'Y' seconds with *arguments
'L' and 'M'*>
...and so on

Python code wise:

Timer(10,app,recurring = True, args=["port",0])
Timer(10,app,recurring = True, args=["controller",1])
...and so on

(Here Y = 10 seconds)

What I was expecting to see was app() function gets called X times with a
timeout of 10 seconds and the arguments as "port" and 0. Next app()
function with arguments "controller" and 1 gets called and so on.

What I am seeing is both versions of app() function (with different
arguments) get called at the same time and wait for 10 seconds and get
called again at the same time, for X number of times.

Is this the expected behavior for Timer? Is there an alternative where in I
can go sequentially? even if I embed the second Timer call in a function
and call that function after the first Timer function, both get called at
the same time.

I have done git clone yesterday so I think its safe to say I am using the
latest version.
Currently I am running this program against Mininet Version 2.0.0

There's less documentation with respect to Timer because of which I am not
sure if I am missing something very obvious. Any help will be greatly
appreciated.

Regards,

Vinay Pai B.H.

-- 
Vinay Pai B.H.
Grad Student - Computer Science
Viterbi School of Engineering
University of Southern California
Los Angeles, CA, USA

Reply via email to