Renders service net map for THT 59/66159/1
authorTim Rozet <trozet@redhat.com>
Thu, 3 Jan 2019 15:31:23 +0000 (10:31 -0500)
committerTim Rozet <trozet@redhat.com>
Thu, 3 Jan 2019 15:31:23 +0000 (10:31 -0500)
commite1c6f92cdac07949b00c758bab5c79ff20639dd9
treebd53ea7eff01a66c7b2cce503c34804a7f1d0584
parentcf3f62e9bac681bad8e81c568893077f122da619
Renders service net map for THT

Previously if a service mapped to a network which was disabled, the
disabled network would fallback to using the ctlplane network. With the
recent change in THT, this is no longer the case:
https://review.openstack.org/#/c/614457/

With the above change, now any service pointing to a disabled network
now results in an empty string value being given for network variables.

This patch sets the service netmap in network-enviornment.yaml
appropriately based on which networks are enabled in apex.

Change-Id: Idf2919935aa707da6ca48968a04cf6653923d19d
Signed-off-by: Tim Rozet <trozet@redhat.com>
apex/network/network_environment.py
apex/tests/test_apex_network_environment.py