Colo: Prefer public IPs (#6264)

automerge
This commit is contained in:
Trent Nelson
2019-10-07 21:44:57 -06:00
committed by Grimes
parent e12c577b16
commit 57916f8be6
2 changed files with 5 additions and 6 deletions

View File

@ -44,7 +44,6 @@ __cloud_FindInstances() {
for AVAIL in "${COLO_RES_AVAILABILITY[@]}"; do
IFS=$'\v' read -r HOST_NAME IP PRIV_IP STATUS ZONE LOCK_USER INSTNAME <<<"$AVAIL"
if [[ $INSTNAME =~ $filter ]]; then
IP=$PRIV_IP # Colo public IPs are firewalled to only allow UDP(8000-10000). Reuse private IP as public and require VPN
printf "%-40s | publicIp=%-16s privateIp=%s zone=%s\n" "$INSTNAME" "$IP" "$PRIV_IP" "$ZONE" 1>&2
echo -e "${INSTNAME}:${IP}:${PRIV_IP}:$ZONE"
fi