#ifdef WITH_SEASTAR
-namespace ceph::common {
+namespace crimson::common {
class ConfigProxy;
}
#endif
static void generate_test_instances(std::list<MonMap*>& o);
protected:
+ /**
+ * build a monmap from a list of entity_addrvec_t's
+ *
+ * Give mons dummy names.
+ *
+ * @param addrs list of entity_addrvec_t's
+ * @param prefix prefix to prepend to generated mon names
+ */
+ void init_with_addrs(const std::vector<entity_addrvec_t>& addrs,
+ bool for_mkfs,
+ std::string_view prefix);
/**
* build a monmap from a list of ips
*
*/
int init_with_ips(const std::string& ips,
bool for_mkfs,
- const std::string &prefix);
+ std::string_view prefix);
/**
* build a monmap from a list of hostnames
*
*/
int init_with_hosts(const std::string& hostlist,
bool for_mkfs,
- const std::string& prefix);
+ std::string_view prefix);
int init_with_config_file(const ConfigProxy& conf, std::ostream& errout);
#if WITH_SEASTAR
seastar::future<> read_monmap(const std::string& monmap);