Skip to content

Commit

Permalink
Merge pull request #59 from OpenMPDK/address-gen2-config-file-generat…
Browse files Browse the repository at this point in the history
…ion-error

Only process subsystems with rdma transport
  • Loading branch information
velomatt authored Jun 21, 2024
2 parents 9545ba2 + 89356f7 commit 7b983d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions host/scripts/dss_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,11 @@ def mountpt_to_nqn_addr_map():
nqn = subsystems[i]["NQN"]
for path in subsystems[i + 1]["Paths"]:
mount_point = '/dev/' + path["Name"] + 'n1'
addr = re.search(r"traddr=(\S+)", path["Address"]).group(1)
mountpts_to_nqn_addr_map[mount_point]["nqn"] = nqn
mountpts_to_nqn_addr_map[mount_point]["addr"] = addr
transport = path["Transport"]
if transport == "rdma":
addr = re.search(r"traddr=(\S+)", path["Address"]).group(1)
mountpts_to_nqn_addr_map[mount_point]["nqn"] = nqn
mountpts_to_nqn_addr_map[mount_point]["addr"] = addr
return mountpts_to_nqn_addr_map


Expand Down

0 comments on commit 7b983d3

Please sign in to comment.