sample_vnf: run_traffic loop, check if tg_process is alive 67/40667/2
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 29 Aug 2017 23:31:59 +0000 (16:31 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Wed, 30 Aug 2017 16:41:32 +0000 (16:41 +0000)
commitda0f85b717bba64d4905542d74fd9b4b945647c3
treee023b6a719c0f2197d73b8327e12f4e72b508b9c
parente9d991a22270cd78485dcc6c8f3ddbf70a62286b
sample_vnf: run_traffic loop, check if tg_process is alive

if the tg_process crashes, this loop won't terminate unless
we check tg_process.is_alive()

wait 1 second before checking in case is_alive needs time
to become True

Change-Id: Ia0b8fd884dcfeb75ebb8e36caaf1f0b70dab079d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
yardstick/network_services/vnf_generic/vnf/sample_vnf.py