Default net name upper to name lower in net maps

If the network does not have the tripleo_network_name
tag set, default the "name_upper" net.name.

Closes-Bug: #1930936
Change-Id: I3f89898227db8649a8937f65fd5e0cc8626cd803
This commit is contained in:
Harald Jensås 2021-06-04 23:39:20 +02:00
parent f6405d7eb4
commit fc0be3eb69
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ def create_name_id_maps(conn):
net_id_map[net.id] = net.name
net_name_map[net.name] = dict(
id=net.id,
name_upper=tags.get('tripleo_network_name')
name_upper=tags.get('tripleo_network_name', net.name)
)
subnets_map = net_name_map[net.name]['subnets'] = dict()