From a9a7b72fb3144eb3462cec31d6269f96ff3bf872 Mon Sep 17 00:00:00 2001 From: Alexander Indenbaum Date: Mon, 27 Nov 2023 19:00:07 +0200 Subject: [PATCH] Fixes issue #340 Signed-off-by: Alexander Indenbaum --- control/proto/gateway.proto | 1 + tests/test_cli.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/control/proto/gateway.proto b/control/proto/gateway.proto index f042264d..7a43348a 100644 --- a/control/proto/gateway.proto +++ b/control/proto/gateway.proto @@ -213,6 +213,7 @@ message namespace { optional string bdev_name = 3; optional string nguid = 4; optional string uuid = 5; + optional uint32 anagrpid = 6; } message spdk_nvmf_log_flags_and_level_info { diff --git a/tests/test_cli.py b/tests/test_cli.py index 6a442735..d1ca6b58 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -315,6 +315,9 @@ def test_add_namespace_ana(self, caplog, gateway): caplog.clear() cli(["add_namespace", "-n", subsystem, "-b", bdev, "-a", anagrpid]) assert f"Added namespace 1 to {subsystem}, ANA group id {anagrpid}" in caplog.text + caplog.clear() + cli(["get_subsystems"]) + assert "failed" not in caplog.text @pytest.mark.parametrize("listener", listener_list) def test_create_listener_ana(self, caplog, listener, gateway):