diff options
author | Vratko Polak <vrpolak@cisco.com> | 2020-11-26 10:39:01 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2020-11-26 13:42:28 +0000 |
commit | cb24a6c00f014baac41f3e24a9e1891d8d04d14d (patch) | |
tree | 72901a22daaa23170200d282175e0be6e60ee150 /resources/libraries | |
parent | 637e9b9ade08d368cce5a239798f50113912207f (diff) |
Support CLI command change for event logger
+ The old command is tried if the new one fails.
Change-Id: I0afdcd7ac699595347b42f3a7d34e1281bb0dc0e
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/VPPUtil.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py index 3c7894988b..c735494282 100644 --- a/resources/libraries/python/VPPUtil.py +++ b/resources/libraries/python/VPPUtil.py @@ -284,8 +284,13 @@ class VPPUtil: :param node: Topology node. :type node: dict """ - PapiSocketExecutor.run_cli_cmd_on_all_sockets( - node, u"elog trace api cli barrier") + try: + PapiSocketExecutor.run_cli_cmd_on_all_sockets( + node, u"event-logger trace api cli barrier") + except AssertionError: + # Perhaps an older VPP build is tested. + PapiSocketExecutor.run_cli_cmd_on_all_sockets( + node, u"elog trace api cli barrier") @staticmethod def vpp_enable_elog_traces_on_all_duts(nodes): |