]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: Show ingress mode in output of 'ceph nfs cluster info' 60991/head
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Mon, 9 Dec 2024 09:59:05 +0000 (15:29 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Thu, 12 Dec 2024 04:08:49 +0000 (09:38 +0530)
Fixes: https://tracker.ceph.com/issues/69153
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
src/pybind/mgr/nfs/cluster.py

index d558a3a37a1f329fc3674221974db7b8606517d9..ed5b40a442fa7939e33e5078c896f592c9ca7624 100644 (file)
@@ -236,6 +236,14 @@ class NFSCluster:
                     r['port'] = i.ports[0]
                     if len(i.ports) > 1:
                         r['monitor_port'] = i.ports[1]
+                if spec.keepalive_only:
+                    ingress_mode = IngressType.keepalive_only
+                elif spec.enable_haproxy_protocol:
+                    ingress_mode = IngressType.haproxy_protocol
+                else:
+                    ingress_mode = IngressType.haproxy_standard
+                r['ingress_mode'] = ingress_mode.value
+
         log.debug("Successfully fetched %s info: %s", cluster_id, r)
         return r