if remote_mon_host and cephx_key:
conf['mon_host'] = remote_mon_host
conf['key'] = cephx_key
- return self.fs_snapshot_mirror.peer_add(fs_name, remote_cluster_spec,
- remote_fs_name, remote_conf=conf)
+ r, out, err = self.fs_snapshot_mirror.peer_add(fs_name, remote_cluster_spec,
+ remote_fs_name, remote_conf=conf)
+ out = (f"{out}\n"
+ "Warning: The 'peer_add' command is deprecated and will be removed in a "
+ "future release. Use 'peer_bootstrap' instead.\n")
+ return r, out, err
@CLIReadCommand('fs snapshot mirror peer_list')
def snapshot_mirror_peer_list(self,