mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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>
This commit is contained in:
commit
bf084a5fd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user