Spdk/python/spdk/rpc/vmd.py
Konrad Sztyber 052ea0baac vmd: method for removing devices behind VMD
Added new RPC, vmd_remove_device, that allows users to remove a PCI
device managed by the VMD library simulating a hot-remove.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Ifb84818ce8d147d1d586b52590527e85fe9c10de
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13957
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tom Nabarro <tom.nabarro@intel.com>
2022-09-01 08:48:32 +00:00

13 lines
303 B
Python

from .helpers import deprecated_alias
@deprecated_alias('enable_vmd')
def vmd_enable(client):
"""Enable VMD enumeration."""
return client.call('vmd_enable')
def vmd_remove_device(client, addr):
"""Remove a device behind VMD"""
return client.call('vmd_remove_device', {'addr': addr})