*** Test Cases ***
Check_Whether_Netconf_Topology_Is_Ready
+ [Tags] ODLMICRO_IGN
[Documentation] Checks netconf readiness.
BuiltIn.Pass_Execution_If ${USE_NETCONF_CONNECTOR}==${True} Netconf connector is used. Next testcases do their job in this case.
BuiltIn.Wait_Until_Keyword_Succeeds 10x 1s Check_Netconf_Topology_Ready
Check_Netconf_Up_And_Running ?prettyPrint=true
Wait_For_MDSAL
+ [Tags] ODLMICRO_IGN
[Documentation] Wait for the MDSAL feature to become online
${status} ${message}= BuiltIn.Run_Keyword_And_Ignore_Error KarafKeywords.Verify_Feature_Is_Installed odl-netconf-mdsal
BuiltIn.Run_Keyword_If '${status}' == 'FAIL' BuiltIn.Pass_Execution The 'odl-netconf-mdsal' feature is not installed so no need to wait for it.
Check_Netconf_Up_And_Running
[Arguments] ${pretty_print}=${EMPTY}
[Documentation] Make a request to netconf connector's list of mounted devices and check that the request was successful.
- ${response}= RequestsLibrary.Get_Request ses restconf/config/network-topology:network-topology/topology/topology-netconf${netconf_connector}${pretty_print}
+ ${response}= RequestsLibrary.Get_Request ses rests/data/network-topology:network-topology/topology\=topology-netconf${netconf_connector}${pretty_print}
BuiltIn.Log ${response.text}
${status}= BuiltIn.Run_Keyword_And_Return_Status BuiltIn.Should_Contain ${response.text} data model content does not exist
BuiltIn.Run_Keyword_If ${status} BuiltIn.Set_Suite_Variable ${netconf_not_ready_cause} 5832