diff options
author | Adam King <47704447+adk3798@users.noreply.github.com> | 2024-01-24 16:25:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 16:25:23 +0100 |
commit | bf084a5fd17c3a94c86908cbfa0a18713d422533 (patch) | |
tree | 528873b99d42475b15dc481b3b64f24514e7915b /src/vstart.sh | |
parent | Merge pull request #53668 from mdw-at-linuxbox/wip-master-update-kmip-1 (diff) | |
parent | vstart: Pick only CIDR-formatted routes when cephadm enabled (diff) | |
download | ceph-bf084a5fd17c3a94c86908cbfa0a18713d422533.tar.xz ceph-bf084a5fd17c3a94c86908cbfa0a18713d422533.zip |
Merge pull request #54941 from samsungceph/vstart_network_v2
vstart: Pick only CIDR-formatted routes when cephadm enabled
Reviewed-by: Adam King <adking@redhat.com>
Diffstat (limited to 'src/vstart.sh')
-rwxr-xr-x | src/vstart.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vstart.sh b/src/vstart.sh index 3765928aa0c..0c9ef323779 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1651,7 +1651,7 @@ EOF fi if [ "$cephadm" -gt 0 ]; then debug echo Setting mon public_network ... - public_network=$(ip route list | grep -w "$IP" | grep -v default | awk '{print $1}') + public_network=$(ip route list | grep -w "$IP" | grep -v default | grep -E "/[0-9]+" | awk '{print $1}') ceph_adm config set mon public_network $public_network fi fi |