diff options
author | Vratko Polak <vrpolak@cisco.com> | 2020-12-04 12:59:51 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2020-12-04 13:47:29 +0000 |
commit | 8dc3a2a0568e1b8e31d02e477102471bf4bc0ee1 (patch) | |
tree | bd2fb52f717499c7af10aa9af926915807af3c96 /resources/tools/papi/vpp_papi_provider.py | |
parent | d719a272815348bd9229c5cd280ecf39e862870b (diff) |
Stats: Use the new client class name
Change-Id: I4c6555068145eb21b7843f9d27433a5ba3f5b13d
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/tools/papi/vpp_papi_provider.py')
-rwxr-xr-x | resources/tools/papi/vpp_papi_provider.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/tools/papi/vpp_papi_provider.py b/resources/tools/papi/vpp_papi_provider.py index 6f3b06663a..bd333b1e87 100755 --- a/resources/tools/papi/vpp_papi_provider.py +++ b/resources/tools/papi/vpp_papi_provider.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2020 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -67,7 +67,7 @@ if do_import: break if modules_path: sys.path.append(modules_path) - from vpp_papi import VPP + from vpp_papi import VPPApiClient from vpp_papi.vpp_stats import VPPStats else: raise RuntimeError(u"vpp_papi module not found") @@ -140,7 +140,7 @@ def process_json_request(args): """ try: - vpp = VPP() + vpp = VPPApiClient() except Exception as err: raise RuntimeError(f"PAPI init failed:\n{err!r}") |