From: Christoph Hellwig Date: Sun, 29 May 2016 18:44:26 +0000 (+0200) Subject: nvmetcli: add descriptions for all configfs attributes X-Git-Tag: v0.2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5ad1da24a6dffea480755e788564aa30239443bd;p=users%2Fhch%2Fnvmetcli.git nvmetcli: add descriptions for all configfs attributes Signed-off-by: Christoph Hellwig --- diff --git a/nvmetcli b/nvmetcli index 9764d84..a318aa6 100755 --- a/nvmetcli +++ b/nvmetcli @@ -146,6 +146,10 @@ class UISubsystemsNode(UINode): class UISubsystemNode(UINode): + ui_desc_attr = { + 'allow_any_host': ('string', 'Allow access by any host if set to 1'), + } + def __init__(self, parent, cfnode): UINode.__init__(self, cfnode.nqn, parent, cfnode) @@ -336,6 +340,14 @@ class UIPortsNode(UINode): class UIPortNode(UINode): + ui_desc_addr = { + 'adrfam': ('string', 'Address Family (e.g. ipv4)'), + 'treq': ('string', 'Transport Security Requirements'), + 'traddr': ('string', 'Transport Address (e.g. IP Address)'), + 'trsvcid': ('string', 'Transport Service ID (e.g. IP Port)'), + 'trtype': ('string', 'Transport Type (e.g. rdma or loop)'), + } + def __init__(self, parent, cfnode): UINode.__init__(self, str(cfnode.portid), parent, cfnode) UIPortSubsystemsNode(self) @@ -442,6 +454,15 @@ class UIReferralsNode(UINode): class UIReferralNode(UINode): + ui_desc_addr = { + 'adrfam': ('string', 'Address Family (e.g. ipv4)'), + 'treq': ('string', 'Transport Security Requirements'), + 'traddr': ('string', 'Transport Address (e.g. IP Address)'), + 'trsvcid': ('string', 'Transport Service ID (e.g. IP Port)'), + 'trtype': ('string', 'Transport Type (e.g. rdma or loop)'), + 'portid': ('int', 'Port identifier'), + } + def __init__(self, parent, cfnode): UINode.__init__(self, cfnode.name, parent, cfnode)