Re: [PATCHv2] nvmetcli: store DHCHAP attributes

Daniel Wagner <[email protected]>
Newsgroups org.infradead.lists.linux-nvme
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.