]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: add list-networks command
authorSage Weil <sage@redhat.com>
Fri, 13 Mar 2020 12:38:46 +0000 (07:38 -0500)
committerSage Weil <sage@redhat.com>
Mon, 16 Mar 2020 19:38:22 +0000 (14:38 -0500)
commit9ef71a8e72b7fe99c7f6697ac857f8f46d663906
tree1150ae253bc39c4f14945f086fb757f6fd0fdaa5
parenta2a44e05d3800758eb35ba03942cb406ccdca031
cephadm: add list-networks command

Summarize CIDR networks and our IPs in them.  Result looks like this:

{
    "10.3.64.0/24": [
        "10.3.64.23",
        "10.3.64.27"
    ],
    "10.88.0.0/16": [
        "10.88.0.1"
    ],
    "192.168.122.0/24": [
        "192.168.122.1"
    ]
}

Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm