Skip to content

Commit

Permalink
common/nvme: use correct local wwnn/wwpn for rport removal
Browse files Browse the repository at this point in the history
The local wwnn and wwpn don't need a port offset.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Mar 5, 2025
1 parent 3fd1e8d commit 5cb9154
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/nvme
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ _cleanup_nvmet() {
name=$(basename "${port}")
echo "WARNING: Test did not clean up port: ${name}"
if [[ "${nvme_trtype}" == "fc" ]]; then
_nvme_fcloop_del_rport "$(_local_wwnn "$name")" \
"$(_local_wwpn "$name")" \
_nvme_fcloop_del_rport "${def_local_wwnn}" "${def_local_wwpn}" \
"$(_remote_wwnn "$name")" \
"$(_remote_wwpn "$name")"
_nvme_fcloop_del_tport "$(_remote_wwnn "$name")" \
Expand Down

0 comments on commit 5cb9154

Please sign in to comment.