FIX: VAT SSH timeout 44/11544/8
authorPeter Mikus <pmikus@cisco.com>
Thu, 5 Apr 2018 11:07:02 +0000 (13:07 +0200)
committerPeter Mikus <pmikus@cisco.com>
Fri, 6 Apr 2018 10:25:34 +0000 (10:25 +0000)
commit84e2999a1b8847e4ae43cc2b0faf901ac8575bc1
tree0b0c7e1f0523b3a90295a465afa8c06e6e1a5922
parent995ac8540182cecb151298a61633c202150020ce
FIX: VAT SSH timeout

Currently when VAT cannot connect to VPP via direct API call, there is
inner timeout of ~100s until it quits and returns RC. In our code we are
setting outer timeout to 10/15s to detect if VAT is not responding. If
VAT does not respond quickly enough due to e.g VPP crash, we are
incorrectly reporting SSHTimout exception.

This fix is suppose to set correct timeout values and also to set some
of the calls like show run|hard|err / clear to detect whether they were
successfull or not.

+ Various small library cleanup.

Change-Id: I787c4baecd7e086705a4076643e255a875ea8438
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/libraries/python/VatExecutor.py
resources/libraries/python/VppCounters.py
resources/libraries/python/ssh.py
resources/libraries/robot/shared/counters.robot