- ${validator} = ScalarClosures.Closure_From_Keyword_And_Arguments WaitUtils.Excluding_Stability_Safe_Stateful_Validator_As_Keyword state_holder data_holder excluded_value=${excluded_count}
- ${result} = WaitUtils.Wait_For_Getter_Error_Or_Safe_Stateful_Validator_Consecutive_Success timeout=${timeout} period=${period} count=${repetitions} getter=${PrefixCounting__getter} safe_validator=${validator}
+ IF """${shards_list}"""=="""${EMPTY}"""
+ ${getter} = ScalarClosures.Closure_From_Keyword_And_Arguments
+ ... Get_Ipv4_Topology_Count
+ ... session=${session}
+ ... topology=${topology}
+ ELSE
+ ${getter} = ScalarClosures.Closure_From_Keyword_And_Arguments
+ ... Get_Ipv4_Topology_Count_With_Shards_Check
+ ... ${shards_list}
+ ... ${shards_details}
+ ... session=${session}
+ ... topology=${topology}
+ END
+ ${validator} = ScalarClosures.Closure_From_Keyword_And_Arguments
+ ... WaitUtils.Excluding_Stability_Safe_Stateful_Validator_As_Keyword
+ ... state_holder
+ ... data_holder
+ ... excluded_value=${excluded_count}
+ ${result} = WaitUtils.Wait_For_Getter_Error_Or_Safe_Stateful_Validator_Consecutive_Success
+ ... timeout=${timeout}
+ ... period=${period}
+ ... count=${repetitions}
+ ... getter=${getter}
+ ... safe_validator=${validator}