Good afternoon,

I've been experimenting with OVSDB and have been successful with it.

Now, I was doing an experiment where I wanted to list the bridges of a remote 
machine. During the experiment, I will turn of the remote machine and test the 
timeout capabilities of the "run_command" function of the VSCtl class.

This is a piece of the code I was testing:

ovs_vsctl = vsctl.VSCtl('tcp:172.16.1.20:6640')
c = vsctl.VSCtlCommand('list-br')
ovs_vsctl.run_command([c], timeout_sec=1)
bridge = c.result[0]

When the machine is up, I can list the bridges without an issue. However, when 
I turn off the remote machine, the run_command just hangs for many seconds, 
like 60 seconds. So, my problem here is that the "timeout_sec" is doing 
absolutely nothing. A print of the "timeout_sec" argument inside the 
run_command function in the vsctl.py file, shows  "1", as it should. But then 
it just hangs, ignoring the timeout.

Is this a bug? Am I doing the timeout wrong?

Thank you,
Ines
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to