From f10f3bd2f878d35f316a7502d3402146b80b6038 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig <hch@lst.de> Date: Fri, 17 Feb 2017 15:47:06 +0100 Subject: [PATCH] add example configuration files Signed-off-by: Christoph Hellwig <hch@lst.de> --- examples/loop.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ examples/rdma.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 examples/loop.json create mode 100644 examples/rdma.json diff --git a/examples/loop.json b/examples/loop.json new file mode 100644 index 0000000..a2b7ec7 --- /dev/null +++ b/examples/loop.json @@ -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 index 0000000..6fc326c --- /dev/null +++ b/examples/rdma.json @@ -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" + } + ] +} -- GitLab