From 0bd2704a88f517b48196a8b1a3c07b0f8032b0f6 Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Mon, 16 Jun 2025 22:39:46 +0530 Subject: [PATCH] mgr/dashboard: Allow host with labels in listener form - Currently, listeners cannot be added with the Ceph Dashboard if the gateway nodes are selected by label instead of hosts. - Refactored the code to incorporate nodes with labels - Also added missing typings and removed 'any' Fixes https://tracker.ceph.com/issues/71686 Signed-off-by: Afreen Misbah --- .../nvmeof-listeners-form.component.html | 2 +- .../nvmeof-listeners-form.component.ts | 47 +++++++++++++------ .../cephfs-form/cephfs-form.component.ts | 3 +- .../service-form/service-form.component.ts | 5 +- .../smb-cluster-form.component.ts | 5 +- .../src/app/shared/api/host.service.ts | 5 +- .../src/app/shared/api/nvmeof.service.ts | 4 +- .../src/app/shared/models/host.interface.ts | 13 +++++ .../app/shared/models/service.interface.ts | 2 +- 9 files changed, 61 insertions(+), 25 deletions(-) create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/shared/models/host.interface.ts diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-listeners-form/nvmeof-listeners-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-listeners-form/nvmeof-listeners-form.component.html index 279d108d3fe20..910e5579ee4b4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-listeners-form/nvmeof-listeners-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-listeners-form/nvmeof-listeners-form.component.html @@ -12,7 +12,7 @@