summaryrefslogtreecommitdiffstats
path: root/src/vstart.sh
diff options
context:
space:
mode:
authorAdam King <47704447+adk3798@users.noreply.github.com>2024-01-24 16:25:23 +0100
committerGitHub <noreply@github.com>2024-01-24 16:25:23 +0100
commitbf084a5fd17c3a94c86908cbfa0a18713d422533 (patch)
tree528873b99d42475b15dc481b3b64f24514e7915b /src/vstart.sh
parentMerge pull request #53668 from mdw-at-linuxbox/wip-master-update-kmip-1 (diff)
parentvstart: Pick only CIDR-formatted routes when cephadm enabled (diff)
downloadceph-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-xsrc/vstart.sh2
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