*** Settings *** Documentation Test Suite for Service Recovery. ... Find detailed test plan here, http://docs.opendaylight.org/en/latest/submodules/genius/docs/testplans/service-recovery.html Suite Setup Genius.SRM Start Suite Suite Teardown Genius.SRM Stop Suite Test Setup Genius Test Setup Test Teardown Genius Test Teardown ${data_models} Resource ../../libraries/DataModels.robot Resource ../../libraries/Genius.robot Resource ../../libraries/OVSDB.robot Resource ../../libraries/Utils.robot Resource ../../libraries/VpnOperations.robot Resource ../../variables/Variables.robot Variables ../../variables/genius/Modules.py *** Test Cases *** ITM TZ Recovery [Documentation] This test case recovers the tunnels using transportzone name. Delete Tunnel on OVS KarafKeywords.Issue Command On Karaf Console srm:recover INSTANCE ITM-TZ TZA BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Status As Up ITM TEP Recovery [Documentation] This test case recovers the tunnels using transportzone name and tunnel's ip address. Delete Tunnel on OVS KarafKeywords.Issue Command On Karaf Console srm:recover INSTANCE ITM-TEP TZA:${TOOLS_SYSTEM_1_IP} BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Status As Up ITM Service Recovery [Documentation] This test case recovers ITM Service. ${tunnel} = BuiltIn.Wait Until Keyword Succeeds 40 20 Genius.Get Tunnel ${DPN_ID_LIST[0]} ${DPN_ID_LIST[1]} ... odl-interface:tunnel-type-vxlan Utils.Remove All Elements At URI And Verify ${CONFIG_API}/ietf-interfaces:interfaces/interface/${tunnel} BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Delete on DS ${tunnel} KarafKeywords.Issue Command On Karaf Console srm:recover SERVICE ITM BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Status As Up IFM Instance Recovery [Documentation] This test case recovers tunnel interface instance using interface name. ${tunnel} = BuiltIn.Wait Until Keyword Succeeds 40 20 Genius.Get Tunnel ${DPN_ID_LIST[0]} ${DPN_ID_LIST[1]} ... odl-interface:tunnel-type-vxlan Delete Tunnel on OVS KarafKeywords.Issue Command On Karaf Console srm:recover INSTANCE IFM-IFACE ${tunnel} BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Status As Up IFM Service Recovery [Documentation] This test case recovers IFM Service. ${tunnel} = BuiltIn.Wait Until Keyword Succeeds 40 20 Genius.Get Tunnel ${DPN_ID_LIST[0]} ${DPN_ID_LIST[1]} ... odl-interface:tunnel-type-vxlan SSHLibrary.Switch Connection ${TOOLS_SYSTEM_ALL_CONN_IDS[0]} ${uuid} ${bridge} = OVSDB.Get Bridge Data ${resp} = RequestsLibrary.Delete Request session ${SOUTHBOUND_CONFIG_API}uuid%2F${uuid}%2Fbridge%2F${bridge} BuiltIn.Should Be Equal As Strings ${resp.status_code} ${RESP_CODE} BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Delete on DS ${tunnel} KarafKeywords.Issue Command On Karaf Console srm:recover SERVICE IFM BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Status As Up *** Keywords *** Delete Tunnel on OVS [Documentation] Deletes a tunnel interface on switch and verify deletion on OVS. ${tunnel} = BuiltIn.Wait Until Keyword Succeeds 40 20 Genius.Get Tunnel ${DPN_ID_LIST[0]} ${DPN_ID_LIST[1]} ... odl-interface:tunnel-type-vxlan Utils.Run Command On Remote System ${TOOLS_SYSTEM_1_IP} sudo ovs-vsctl del-port ${tunnel} BuiltIn.Wait Until Keyword Succeeds 60s 5s Genius.Verify Tunnel Delete on DS ${tunnel}