diff --git a/lnst/Controller/SlavePool.py b/lnst/Controller/SlavePool.py index 53ad362..8bde410 100644 --- a/lnst/Controller/SlavePool.py +++ b/lnst/Controller/SlavePool.py @@ -450,9 +450,9 @@ class SetupMapper(object): if self._check_machine_compatibility(mreq_m_id, pool_m_id): #map compatible pool machine stack_top["current_match"] = pool_m_id - pool_ifs = self._pool[pool_m_id]["interfaces"].keys() - stack_top["unmatched_pool_ifs"] = list(pool_ifs) - + pool_ifs = sorted(self._pool[pool_m_id]["interfaces"].keys()) + pool_ifs.reverse() + stack_top["unmatched_pool_ifs"] = pool_ifs self._unmatched_pool_machines.remove(pool_m_id) break @@ -550,7 +550,9 @@ class SetupMapper(object): machine_match["if_stack"] = [] machine = self._mreqs[machine_match["m_id"]] - machine_match["unmatched_ifs"] = machine["interfaces"].keys() + unm_ifs = sorted(machine["interfaces"].keys()) + unm_ifs.reverse() + machine_match["unmatched_ifs"] = unm_ifs machine_match["unmatched_pool_ifs"] = [] if self._virtual_matching: