From: Shweta Bhosale Date: Mon, 9 Dec 2024 09:59:05 +0000 (+0530) Subject: mgr/nfs: Show ingress mode in output of 'ceph nfs cluster info' X-Git-Tag: v20.0.0~249^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c3da9112757261fd70affb22360a75284405ab96;p=ceph.git mgr/nfs: Show ingress mode in output of 'ceph nfs cluster info' Fixes: https://tracker.ceph.com/issues/69153 Signed-off-by: Shweta Bhosale --- diff --git a/src/pybind/mgr/nfs/cluster.py b/src/pybind/mgr/nfs/cluster.py index d558a3a37a1f..ed5b40a442fa 100644 --- a/src/pybind/mgr/nfs/cluster.py +++ b/src/pybind/mgr/nfs/cluster.py @@ -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