]> www.infradead.org Git - users/hch/nvmetcli.git/commitdiff
nvmetcli: add descriptions for all configfs attributes
authorChristoph Hellwig <hch@lst.de>
Sun, 29 May 2016 18:44:26 +0000 (20:44 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 29 May 2016 19:16:12 +0000 (21:16 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmetcli

index 9764d84a77fda19f7d01a24fc62c4f4a0b1b2359..a318aa65a62f172364a9020e69414b269bdd7fd2 100755 (executable)
--- 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)