Create and Verify VTEP
[Documentation] This testcase creates a Internal Transport Manager - ITM tunnel between 2 DPNs
Genius.Create Vteps ${NO_VLAN} ${gateway_ip}
- Wait Until Keyword Succeeds 40 10 Genius.Get ITM ${itm_created[0]} ${SUBNET} ${NO_VLAN}
+ BuiltIn.Wait Until Keyword Succeeds 40 10 Genius.Get ITM ${itm_created[0]} ${SUBNET} ${NO_VLAN}
${type} = BuiltIn.Set Variable odl-interface:tunnel-type-vxlan
Genius.Update Dpn id list and get tunnels ${type} dpn-teps-state
Genius.Verify Response Code Of Dpn Endpointconfig API
- Wait Until Keyword Succeeds 40 10 Genius.Ovs Interface Verification
+ BuiltIn.Wait Until Keyword Succeeds 40 10 Genius.Ovs Interface Verification
${resp} = RequestsLibrary.Get Request session ${OPERATIONAL_API}/itm-state:tunnels_state/
- Should Be Equal As Strings ${resp.status_code} 200
- Wait Until Keyword Succeeds 60 5 Genius.Verify Tunnel Status As Up
- Wait Until Keyword Succeeds 40 10 Genius.Verify Table0 Entry After fetching Port Number
+ BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
+ BuiltIn.Wait Until Keyword Succeeds 60 5 Genius.Verify Tunnel Status As Up
+ BuiltIn.Wait Until Keyword Succeeds 40 10 Genius.Verify Table0 Entry After fetching Port Number
Verify VTEP After Restarting OVS
[Documentation] Verify Testcase, Verifying tunnel state by restarting OVS
- Wait Until Keyword Succeeds 20 2 Genius.Verify Tunnel Status As Up
+ BuiltIn.Wait Until Keyword Succeeds 20 2 Genius.Verify Tunnel Status As Up
OVSDB.Restart OVSDB ${TOOLS_SYSTEM_IP}
Verify VTEP After Restarting Controller
BuiltIn.Wait Until Keyword Succeeds 30 3 Genius.Verify Tunnel Status As Up
ClusterManagement.Stop_Members_From_List_Or_All
ClusterManagement.Start_Members_From_List_Or_All
- Wait Until Keyword Succeeds 60 3 ClusterManagement.Check Status Of Services Is OPERATIONAL @{GENIUS_DIAG_SERVICES}
- Wait Until Keyword Succeeds 30 3 Genius.Verify Tunnel Status As Up
+ BuiltIn.Wait Until Keyword Succeeds 60 3 ClusterManagement.Check Status Of Services Is OPERATIONAL @{GENIUS_DIAG_SERVICES}
+ BuiltIn.Wait Until Keyword Succeeds 30 3 Genius.Verify Tunnel Status As Up
Verify Tunnels By Enabling/Disabling BFD
[Documentation] Verify tunnel creation by enabling and disabling BFD one after another with respect to the branch in such a way default value is retained at last.
Delete and Verify VTEP
[Documentation] This Delete testcase , deletes the ITM tunnel created between 2 dpns.
- ${tunnel_list} Genius.Get Tunnels List
+ ${tunnel_list} = Genius.Get Tunnels List
: FOR ${dpn_id} IN @{DPN_ID_LIST}
\ Utils.Remove All Elements At URI And Verify ${CONFIG_API}/itm:transport-zones/transport-zone/${itm_created[0]}/subnets/${SUBNET}%2F16/vteps/${dpn_id}/${port_name}
- ${output} KarafKeywords.Issue Command On Karaf Console ${TEP_SHOW}
+ ${output} = KarafKeywords.Issue Command On Karaf Console ${TEP_SHOW}
BuiltIn.Should Not Contain ${output} ${itm_created[0]}
- Remove All Elements At URI And Verify ${CONFIG_API}/itm:transport-zones/transport-zone/${itm_created[0]}/
- ${resp} Utils.Get Data From URI session ${CONFIG_API}/itm:transport-zones/
+ Utils.Remove All Elements At URI And Verify ${CONFIG_API}/itm:transport-zones/transport-zone/${itm_created[0]}/
+ ${resp} = Utils.Get Data From URI session ${CONFIG_API}/itm:transport-zones/
BuiltIn.Should Not Contain ${resp} ${itm_created[0]}
- Wait Until Keyword Succeeds 40 10 Genius.Verify Deleted Tunnels On OVS ${tunnel_list} ${resp}
- Wait Until Keyword Succeeds 40 10 Genius.Check Tunnel Delete On OVS ${tunnel_list}
+ BuiltIn.Wait Until Keyword Succeeds 40 10 Genius.Verify Deleted Tunnels On OVS ${tunnel_list} ${resp}
+ BuiltIn.Wait Until Keyword Succeeds 40 10 Genius.Check Tunnel Delete On OVS ${tunnel_list}
*** Keywords ***
Enable_Tunnel_Monitoring
[Documentation] In this we will enable tunnel monitoring by tep:enable command running in karaf console
- Issue_Command_On_Karaf_Console tep:enable-tunnel-monitor true
+ KarafKeywords.Issue_Command_On_Karaf_Console tep:enable-tunnel-monitor true
Verify Tunnel State After OVS Restart
[Arguments] ${TOOLS_SYSTEM_IP}
[Documentation] In this we will Verify Tunnel State by Stopping/Starting Switch
OVSDB.Stop OVS ${TOOLS_SYSTEM_IP}
- Wait Until Keyword Succeeds 2min 20 sec Verify Tunnel Down
+ BuiltIn.Wait Until Keyword Succeeds 2min 20 sec Verify Tunnel Down
OVSDB.Start OVS ${TOOLS_SYSTEM_IP}
- Wait Until Keyword Succeeds 2min 20 sec Genius.Verify Tunnel Status As Up
+ BuiltIn.Wait Until Keyword Succeeds 2min 20 sec Genius.Verify Tunnel Status As Up
Verify Tunnel Down
[Documentation] In this we will check whether tunnel is in down or not
${output}= KarafKeywords.Issue_Command_On_Karaf_Console ${TEP_SHOW_STATE}
- Should Contain ${output} DOWN
+ BuiltIn.Should Contain ${output} DOWN
Disable_Tunnel_Monitoring
[Documentation] In this we will disable tunnel monitoring by tep:enable command running in karaf console
- Issue_Command_On_Karaf_Console tep:enable-tunnel-monitor false
+ KarafKeywords.Issue_Command_On_Karaf_Console tep:enable-tunnel-monitor false
Verify Tunnels By Enabling BFD
[Documentation] Verify tunnel creation by enabling BFD monitoring.
- ${result} Run Keyword And Return Status Genius.Verify Tunnel Monitoring Status ${TUNNEL_MONITOR_ON}
- Run Keyword If '${result}' == 'False' Enable_Tunnel_monitoring
+ ${result} = BuiltIn.Run Keyword And Return Status Genius.Verify Tunnel Monitoring Status ${TUNNEL_MONITOR_ON}
+ BuiltIn.Run Keyword If '${result}' == 'False' Enable_Tunnel_monitoring
: FOR ${tools_ip} IN @{TOOLS_SYSTEM_ALL_IPS}
\ Verify Tunnel State After OVS Restart ${tools_ip}
Verify Tunnels By Disabling BFD
[Documentation] Verify tunnel creation by disabling BFD monitoring.
${result} = Run Keyword And Return Status Genius.Verify Tunnel Monitoring Status ${TUNNEL_MONITOR_ON}
- Run Keyword If '${result}' == 'True' Disable_Tunnel_Monitoring
+ BuiltIn.Run Keyword If '${result}' == 'True' Disable_Tunnel_Monitoring
${tunnels_on_OVS} = Genius.Get Tunnels On OVS ${TOOLS_SYSTEM_ALL_CONN_IDS[0]}
OVSDB.Stop OVS ${TOOLS_SYSTEM_IP}
Genius.Verify Tunnel Status UNKNOWN ${tunnels_on_OVS}
OVSDB.Start OVS ${TOOLS_SYSTEM_IP}
- Wait Until Keyword Succeeds 10s 1s Genius.Verify Tunnel Status As Up
+ BuiltIn.Wait Until Keyword Succeeds 10s 1s Genius.Verify Tunnel Status As Up