Assumes devstack was configured with SERVICE_IP_VERSION in local.conf SERVICE_IP_VERSION is stored in .stackenv and checked in openrc. If SERVICE_IP_VERSION is set to 6, openrc will use IPv6. NOTE: At first, I added a '-6' option to the openrc call which would set the HOSTS accordingly. I then simplified the code by saving SERVICE_IP_VERSION to the .stackenv file which is sourced by openrc. After that, I simplified the code even more by removing an extra, unnecessary, variable. Change-Id: I5d46d5438d3e56fea788720ca17f0010caef3df1
3.9 KiB
3.9 KiB