Skip to contentSkip to conversation

Add fc transport support to nvmetcli

PATCH New [email protected] 3 participants 3 messages Apr 12, 2017 – Apr 20, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add fc transport support to nvmetcli

From: James Smart <[email protected]>

Add fc.json file for example FC configuration. Small text update for FC in examples/documentation

Signed-off-by James Smart <james.smart at broadcom.com>
---
 Documentation/nvmetcli.txt | 13 +++++++++++++
 README                     |  6 ++++++
 debian/nvmetcli.examples   |  1 +
 examples/fc.json           | 42 ++++++++++++++++++++++++++++++++++++++++++
 fc.json                    | 42 ++++++++++++++++++++++++++++++++++++++++++
 nvmetcli                   | 12 ++++++------
 6 files changed, 110 insertions(+), 6 deletions(-)
 create mode 100644 examples/fc.json
 create mode 100644 fc.json
Documentation/nvmetcli.txt +13 -0
index 4c99512..1f381cc 100644
@@ -198,6 +198,19 @@ IANA assigned default port for NVMe over Fabrics using RDMA:
 ...> create testnqn
 --------------
 
+* or create an FC port. traddr is the WWNN/WWPN of the FC port.
+--------------
+...> cd /ports/
+...> create 3
+...> cd 3/
+...> set addr trtype=fc
+...> set addr adrfam=fc
+...> set addr traddr=nn-0x1000000044001123:pn-0x2000000055001123
+...> set addr trsvcid=none
+...> cd subsystems/
+...> create testnqn
+--------------
+
 * Saving the NVMe Target configuration:
 --------------
 ./nvmetcli
README +6 -0
index a3d529a..cd4bd78 100644
@@ -33,6 +33,12 @@ after you've ensured that the IP address in rdma.json fits your setup:
 
   ./nvmetcli restore rdma.json
 
+Or to load the fc + no host authentication version do the following
+after you've ensured that the port traddr FC address information in
+fc.json fits your setup:
+
+  ./nvmetcli restore fc.json
+
 These files can also be edited directly using your favorite editor.
 
 Testing
debian/nvmetcli.examples +1 -0
index 966124f..53ead2f 100644
@@ -1,2 +1,3 @@
 loop.json
 rdma.json
+fc.json
examples/fc.json new file +42 -0

42 lines not on this page · raw message

fc.json new file +42 -0

42 lines not on this page · raw message

nvmetcli +6 -6
index 9f7eacf..0ada243 100755
@@ -341,11 +341,11 @@ class UIPortsNode(UINode):
 
 class UIPortNode(UINode):
     ui_desc_addr = {
-        'adrfam': ('string', 'Address Family (e.g. ipv4)'),
+        'adrfam': ('string', 'Address Family (e.g. ipv4 or fc)'),
         'treq': ('string', 'Transport Security Requirements'),
-        'traddr': ('string', 'Transport Address (e.g. IP Address)'),
+        'traddr': ('string', 'Transport Address (e.g. IP Address or FC wwnn:wwpn)'),
         'trsvcid': ('string', 'Transport Service ID (e.g. IP Port)'),
-        'trtype': ('string', 'Transport Type (e.g. rdma or loop)'),
+        'trtype': ('string', 'Transport Type (e.g. rdma or loop or fc)'),
     }
 
     def __init__(self, parent, cfnode):
@@ -455,11 +455,11 @@ class UIReferralsNode(UINode):
 
 class UIReferralNode(UINode):
     ui_desc_addr = {
-        'adrfam': ('string', 'Address Family (e.g. ipv4)'),
+        'adrfam': ('string', 'Address Family (e.g. ipv4 or fc)'),
         'treq': ('string', 'Transport Security Requirements'),
-        'traddr': ('string', 'Transport Address (e.g. IP Address)'),
+        'traddr': ('string', 'Transport Address (e.g. IP Address or FC wwnn:wwpn)'),
         'trsvcid': ('string', 'Transport Service ID (e.g. IP Port)'),
-        'trtype': ('string', 'Transport Type (e.g. rdma or loop)'),
+        'trtype': ('string', 'Transport Type (e.g. rdma or loop or fc)'),
         'portid': ('number', 'Port identifier'),
     }
 
Signature · 1 line
2.9.3