diff --git a/internal/util/connection.go b/internal/util/connection.go index a052ddca4..c3b285d98 100644 --- a/internal/util/connection.go +++ b/internal/util/connection.go @@ -151,3 +151,13 @@ func (cc *ClusterConnection) GetNFSAdmin() (*nfs.Admin, error) { return nfs.NewFromConn(cc.conn), nil } + +// GetAddrs returns the addresses of the RADOS session, +// suitable for blocklisting. +func (cc *ClusterConnection) GetAddrs() (string, error) { + if cc.conn == nil { + return "", errors.New("cluster is not connected yet") + } + + return cc.conn.GetAddrs() +}