mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
nodedev: Introduce two new flags for listAll API
VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST to filter the FC HBA, and VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS to filter the FC HBA which supports vport.
This commit is contained in:
@@ -447,6 +447,12 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
||||
case VIR_NODE_DEV_CAP_STORAGE:
|
||||
flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGE;
|
||||
break;
|
||||
case VIR_NODE_DEV_CAP_FC_HOST:
|
||||
flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST;
|
||||
break;
|
||||
case VIR_NODE_DEV_CAP_VPORTS:
|
||||
flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1998,9 +1998,10 @@ List all of the devices available on the node that are known by libvirt.
|
||||
I<cap> is used to filter the list by capability types, the types must be
|
||||
separated by comma, e.g. --cap pci,scsi, valid capability types include
|
||||
'system', 'pci', 'usb_device', 'usb', 'net', 'scsi_host', 'scsi_target',
|
||||
'scsi', 'storage'. If I<--tree> is used, the output is formatted in a tree
|
||||
representing parents of each node. I<cap> and I<--tree> are mutually
|
||||
exclusive.
|
||||
'scsi', 'storage', 'fc_host', 'vports'. If I<--tree> is used, the output
|
||||
is formatted in a tree representing parents of each node. I<cap> and
|
||||
I<--tree> are mutually exclusive.
|
||||
|
||||
=item B<nodedev-reattach> I<nodedev>
|
||||
|
||||
Declare that I<nodedev> is no longer in use by any guests, and that
|
||||
|
||||
Reference in New Issue
Block a user