nfvbenchvm: refactor wait for VPP service 39/73639/1
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Mon, 18 Jul 2022 13:49:51 +0000 (15:49 +0200)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Thu, 10 Nov 2022 13:56:15 +0000 (14:56 +0100)
commit1278ef65bd3422c0684007535742c3ef28d645ef
tree649433267c15c39878458e14dcfed90367131400
parent87d88eab6fe50101abc607857f13af9273aef80a
nfvbenchvm: refactor wait for VPP service

Sleeping for 10s and hoping that VPP service will be ready to accept
vppctl commands does not work all the times.  Instead of increasing the
sleep time, poll every second until "vppctl show int" returns something.
Wait at most 30 seconds.

By the way, exit with a clear error message if "vppctl show int" does
not report two network interfaces as expected.

Change-Id: I6f0f053378c0bee8fd28a231dc1041c94642f5b3
Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
nfvbenchvm/dib/elements/nfvbenchvm/static/etc/rc.d/rc.local.loopvm