#!/bin/bash
#
# Script which start an ICMP connectivity check on the first in use
# floating IP during upgrade
FIP=$(openstack floating ip list -f json | jq -r -c '.[] | select(.Port) | .["Floating IP Address"]' | head -1)
ping -D ${FIP} >> ~/ping_results_$(date +%Y%m%d%H%M).log &
