Skip to content

Commit

Permalink
Merge pull request #1566 from grycap/devel
Browse files Browse the repository at this point in the history
try to use default nets first
  • Loading branch information
micafer authored May 29, 2024
2 parents 68a54b5 + 307489d commit c5a2362
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IM/connectors/OpenStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,11 @@ def get_ost_network_info(driver, pool_names):
# let's assume that is not public
ost_net.extra['is_public'] = False

return get_subnets, ost_nets
# set the networks with the default work in its name first
res = ([ost_net for ost_net in ost_nets if "default" in ost_net.name] +
[ost_net for ost_net in ost_nets if "default" not in ost_net.name])

return get_subnets, res

@staticmethod
def map_networks(radl, ost_nets):
Expand Down

0 comments on commit c5a2362

Please sign in to comment.