Fix the amphora failover flow docs diagram
The spare pool failover patch changed the logic of the failover flow and cause the flow diagram generation to only render part of the flow. This patch updates the diagram generation to show the whole failover flow. Change-Id: I8dc49f0ca74054869ec42fee4236533acb24eb3a
This commit is contained in:
parent
9cd1bab382
commit
86698b2be2
@ -51,8 +51,13 @@ def generate(flow_list, output_directory):
|
|||||||
current_tuple[1])
|
current_tuple[1])
|
||||||
current_instance = current_class()
|
current_instance = current_class()
|
||||||
get_flow_method = getattr(current_instance, current_tuple[2])
|
get_flow_method = getattr(current_instance, current_tuple[2])
|
||||||
if (current_tuple[1] == 'LoadBalancerFlows' and
|
if (current_tuple[1] == 'AmphoraFlows' and
|
||||||
current_tuple[2] == 'get_create_load_balancer_flow'):
|
current_tuple[2] == 'get_failover_flow'):
|
||||||
|
current_engine = engines.load(
|
||||||
|
get_flow_method(role=constants.ROLE_STANDALONE,
|
||||||
|
status=constants.AMPHORA_ALLOCATED))
|
||||||
|
elif (current_tuple[1] == 'LoadBalancerFlows' and
|
||||||
|
current_tuple[2] == 'get_create_load_balancer_flow'):
|
||||||
current_engine = engines.load(
|
current_engine = engines.load(
|
||||||
get_flow_method(
|
get_flow_method(
|
||||||
constants.TOPOLOGY_ACTIVE_STANDBY))
|
constants.TOPOLOGY_ACTIVE_STANDBY))
|
||||||
|
Loading…
Reference in New Issue
Block a user