L3 agent migration should only choose enabled agent
L3 agent migration only choose agent with {"admin_state_up":True}, in order to avoid error from neutron client. Closes-Bug: #1392226 Change-Id: I8131567440dd4d67e6dce717635c333e27755931
This commit is contained in:
parent
7780b134d0
commit
4f3f0b729d
|
@ -521,7 +521,8 @@ def agent_alive_id_list(agent_list, agent_type):
|
|||
|
||||
"""
|
||||
return [agent['id'] for agent in agent_list
|
||||
if agent['agent_type'] == agent_type and agent['alive'] is True]
|
||||
if agent['agent_type'] == agent_type and agent['alive'] is True and
|
||||
agent['admin_state_up'] is True]
|
||||
|
||||
|
||||
def agent_dead_id_list(agent_list, agent_type):
|
||||
|
|
Loading…
Reference in New Issue