]> www.infradead.org Git - users/hch/nvmetcli.git/commitdiff
add example configuration files
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Feb 2017 14:47:06 +0000 (15:47 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 17 Feb 2017 14:49:33 +0000 (15:49 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
examples/loop.json [new file with mode: 0644]
examples/rdma.json [new file with mode: 0644]

diff --git a/examples/loop.json b/examples/loop.json
new file mode 100644 (file)
index 0000000..a2b7ec7
--- /dev/null
@@ -0,0 +1,44 @@
+{
+  "hosts": [
+    {
+      "nqn": "hostnqn"
+    }
+  ], 
+  "ports": [
+    {
+      "addr": {
+        "adrfam": "", 
+        "traddr": "", 
+        "treq": "not specified", 
+        "trsvcid": "", 
+        "trtype": "loop"
+      }, 
+      "portid": 1, 
+      "referrals": [], 
+      "subsystems": [
+        "testnqn"
+      ]
+    }
+  ], 
+  "subsystems": [
+    {
+      "allowed_hosts": [
+        "hostnqn"
+      ], 
+      "attr": {
+        "allow_any_host": "0"
+      }, 
+      "namespaces": [
+        {
+          "device": {
+            "nguid": "ef90689c-6c46-d44c-89c1-4067801309a8", 
+            "path": "/dev/nvme0n1"
+          }, 
+          "enable": 1, 
+          "nsid": 1
+        }
+      ], 
+      "nqn": "testnqn"
+    }
+  ]
+}
diff --git a/examples/rdma.json b/examples/rdma.json
new file mode 100644 (file)
index 0000000..6fc326c
--- /dev/null
@@ -0,0 +1,42 @@
+{
+  "hosts": [
+    {
+      "nqn": "hostnqn"
+    }
+  ], 
+  "ports": [
+    {
+      "addr": {
+        "adrfam": "ipv4", 
+        "traddr": "192.168.6.68", 
+        "treq": "not specified", 
+        "trsvcid": "4420", 
+        "trtype": "rdma"
+      }, 
+      "portid": 2, 
+      "referrals": [], 
+      "subsystems": [
+        "testnqn"
+      ]
+    }
+  ], 
+  "subsystems": [
+    {
+      "allowed_hosts": [], 
+      "attr": {
+        "allow_any_host": "1"
+      }, 
+      "namespaces": [
+        {
+          "device": {
+            "nguid": "ef90689c-6c46-d44c-89c1-4067801309a8", 
+            "path": "/dev/nvme0n1"
+          }, 
+          "enable": 1, 
+          "nsid": 1
+        }
+      ], 
+      "nqn": "testnqn"
+    }
+  ]
+}