summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/mirroring/module.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/mirroring/module.py')
-rw-r--r--src/pybind/mgr/mirroring/module.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pybind/mgr/mirroring/module.py b/src/pybind/mgr/mirroring/module.py
index 4b4354ab2b9..67f0942147e 100644
--- a/src/pybind/mgr/mirroring/module.py
+++ b/src/pybind/mgr/mirroring/module.py
@@ -84,6 +84,12 @@ class Module(MgrModule):
"""Remove a snapshot mirrored directory"""
return self.fs_snapshot_mirror.remove_dir(fs_name, path)
+ @CLIWriteCommand('fs snapshot mirror ls')
+ def snapshot_mirror_ls(self,
+ fs_name: str):
+ """List the snapshot mirrored directories"""
+ return self.fs_snapshot_mirror.list_dirs(fs_name)
+
@CLIReadCommand('fs snapshot mirror dirmap')
def snapshot_mirror_dirmap(self,
fs_name: str,