Spdk/examples/nvme/hotplug/hotplug_plugin.py

16 lines
442 B
Python
Raw Normal View History

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
from spdk.rpc.client import print_json
def perform_tests(args):
print_json(args.client.call('perform_tests'))
def spdk_rpc_plugin_initialize(subparsers):
p = subparsers.add_parser('perform_tests',
help='Returns true when hotplug apps starts running IO')
p.set_defaults(func=perform_tests)