X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=GPL%2Ftools%2Ftrex%2Ftrex_astf_stop.py;h=77f6cd3c2610a8d8dff428749bd27972ca1ce6ce;hb=3887ba9733c250e327e9dc1c93b9d87e1bc7e749;hp=1db122ba0f3e4477975f8516cc74873e6ec4032f;hpb=3793e1525f12ca1bdbd2140254eae31535818c27;p=csit.git diff --git a/GPL/tools/trex/trex_astf_stop.py b/GPL/tools/trex/trex_astf_stop.py index 1db122ba0f..77f6cd3c26 100644 --- a/GPL/tools/trex/trex_astf_stop.py +++ b/GPL/tools/trex/trex_astf_stop.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # @@ -44,9 +44,9 @@ import sys from collections import OrderedDict # Needed to parse xstats representation. sys.path.insert( - 0, u"/opt/trex-core-2.88/scripts/automation/trex_control_plane/interactive/" + 0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/" ) -from trex.astf.api import * +from trex.astf.api import ASTFClient def main(): @@ -84,7 +84,7 @@ def main(): # If TRexError happens, let the script fail with stack trace. finally: - client.clear_profile() + client.reset() client.disconnect() # TODO: check xstats format