[PATCHv2] nvmetcli: store DHCHAP attributes
Daniel Wagner
dwagner at suse.de
Tue Jul 14 09:58:52 PDT 2026
On Mon, Jul 13, 2026 at 03:53:18PM +0200, Hannes Reinecke wrote:
> The DHCHAP authentication is stored under hosts/, and are starting
> with 'dhchap_'. So add a 'dhchap' attribute group for the host object
> to correctly save and restore DHCHAP values.
> --- a/nvmet/test_nvmet.py
> +++ b/nvmet/test_nvmet.py
> @@ -426,6 +426,7 @@ class TestNvmet(unittest.TestCase):
> root.clear_existing()
>
> h = nvme.Host(nqn='hostnqn', mode='create')
> + h.set_attr('dhgroup','ffdhe2048')
I suppose this should be
h.set_attr('dhchap', 'dhgroup','ffdhe2048')
set_attr wants 3 arguments.
More information about the Linux-nvme
mailing list