]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/pick_address: add {public,cluster}_network_interface option 18131/head
authorSage Weil <sage@redhat.com>
Thu, 28 Sep 2017 21:47:17 +0000 (17:47 -0400)
committerSage Weil <sage@redhat.com>
Thu, 5 Oct 2017 17:04:59 +0000 (12:04 -0500)
commitf99fe83a37241fe1c616ecb854b5196112985861
tree5da3cf0bbba0bce6c33c9f6c196405cee39a998d
parent66af04cd9b61d482362361cb3b12af2d8ffa462c
common/pick_address: add {public,cluster}_network_interface option

Add _interfaces option to constrain the choice of IPs in the network
list to those on interfaces matching the provided list of interface names.
The _interfaces options only work in concert with the _network options,
so you must also specify a list of networks if you want to use a specific
interface, e.g., by specifying a broad network like "::" or "0.0.0.0/0".

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 95cc790acddb597d6fef2d9e444f0b6e0436f16f)
src/common/options.cc
src/common/pick_address.cc
src/common/pick_address.h
src/test/test_ipaddr.cc