diff options
author | juraj.linkes <juraj.linkes@pantheon.tech> | 2019-11-29 20:29:40 +0100 |
---|---|---|
committer | juraj.linkes <juraj.linkes@pantheon.tech> | 2019-11-29 20:29:40 +0100 |
commit | bb33f1d16f1451253f942da0c55cdea72e71c398 (patch) | |
tree | 7e15d32d88b0aa32477ed8d42d7b4f12ea1cdf50 | |
parent | 53fb7dad59b185992aaed1ec2e470c547693caf2 (diff) |
Change startup show pci to show ver
When testing whether a socket is listetning, show pci results in a crash
on the Taishan platform. Temporarily work around this by changing it to
show ver.
Change-Id: Id0f995373bc2f429d59de200e51959b2da408052
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
-rw-r--r-- | resources/libraries/python/VPPUtil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py index 72325d8169..d3ab54766c 100644 --- a/resources/libraries/python/VPPUtil.py +++ b/resources/libraries/python/VPPUtil.py @@ -111,12 +111,12 @@ class VPPUtil: :param node: Topology node. :type node: dict """ - cmd = u"echo \"show pci\" | sudo socat - UNIX-CONNECT:/run/vpp/cli.sock" + cmd = u"echo \"show ver\" | sudo socat - UNIX-CONNECT:/run/vpp/cli.sock" exec_cmd_no_error( node, cmd, sudo=False, message=u"VPP failed to start!", retries=120 ) - cmd = u"vppctl show pci 2>&1 | fgrep -v \"Connection refused\" | " \ + cmd = u"vppctl show ver 2>&1 | fgrep -v \"Connection refused\" | " \ u"fgrep -v \"No such file or directory\"" exec_cmd_no_error( node, cmd, sudo=True, message=u"VPP failed to start!", retries=120 |