From ff76ac43fca365311b1e2eb77e1e0f2a4be7b8cb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 1 Jun 2018 14:13:29 -0500 Subject: [PATCH] common/pick_address: fill in ipv4/6 and msgr1/msgr2 via config options This allows users to simply pass in CLUSTER or PUBLIC and the function fills in the rest. (Or, if the caller is particular, they can pass in the other flags too.) Signed-off-by: Sage Weil --- src/common/options.cc | 22 +++++++++++++++++++++- src/common/pick_address.cc | 25 +++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 49ccafa02419b..6e021c193c9ce 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -924,9 +924,29 @@ std::vector