${DEFAULT_TRANSPORT_ZONE} default-transport-zone
${SET_LOCAL_IP} sudo ovs-vsctl set O . other_config:local_ip=
${REMOVE_LOCAL_IP} sudo ovs-vsctl remove O . other_config local_ip
-${odl_stream_check } &{Stream_dict}[${ODL_STREAM}] <= &{Stream_dict}[neon]
+${odl_stream_check } ${Stream_dict}[${ODL_STREAM}] <= ${Stream_dict}[neon]
*** Keywords ***
Genius Suite Setup
BuiltIn.Log ${resp.content}
${respjson} = RequestsLibrary.To Json ${resp.content} pretty_print=True
${json} = Utils.Json Parse From String ${resp.content}
- BuiltIn.Should Contain ${resp.content} ${dst}
- BuiltIn.Run Keyword If '${config_api_type}' == '${EMPTY}' BuiltIn.Should Contain ${resp.content} ${src}
+ BuiltIn.Should Contain ${resp.text} ${dst}
+ BuiltIn.Run Keyword If '${config_api_type}' == '${EMPTY}' BuiltIn.Should Contain ${resp.text} ${src}
${tunnel_interface_name} = BuiltIn.Run Keyword If "tunnel-interface-names" in "${json}" Genius.Get Tunnel Interface Name ${json["internal-tunnel"][0]} tunnel-interface-names
- ${tunnel_name_output} ${tunnel_name} = BuiltIn.Run Keyword Unless '${config_api_type}' == '${EMPTY}' BuiltIn.Should Match Regexp ${resp.content} "tunnel-name":"(tun[\\w\\d]+)"
+ ${tunnel_name_output} ${tunnel_name} = BuiltIn.Run Keyword Unless '${config_api_type}' == '${EMPTY}' BuiltIn.Should Match Regexp ${resp.text} "tunnel-name":"(tun[\\w\\d]+)"
${tunnel} = BuiltIn.Set Variable If '${config_api_type}' == '${EMPTY}' ${tunnel_interface_name} ${tunnel_name}
[Return] ${tunnel}
FOR ${each_tun} IN RANGE ${no of tunnels}
${tun} Collections.Get From List ${tun_names} ${each_tun}
BuiltIn.Wait Until Keyword Succeeds 20 5 OVSDB.Verify Ovs-vsctl Output list interface ${tun} 5000
- ... ovs_system=@{TOOLS_SYSTEM_ALL_IPS}[${tool_system_index}]
+ ... ovs_system=${TOOLS_SYSTEM_ALL_IPS}[${tool_system_index}]
END
${get_resp} = RequestsLibrary.Get Request session ${CONFIG_API}/id-manager:id-pools/id-pool/${pool-name}/available-ids-holder/
${respjson} = RequestsLibrary.To Json ${get_resp.content} pretty_print=True
BuiltIn.Log ${respjson}
- BuiltIn.Should Contain ${get_resp.content} 17
+ BuiltIn.Should Contain ${get_resp.text} 17
BuiltIn.Should Be Equal As Strings ${get_resp.status_code} 200
Release a block of IDs allocated using releaseIds RPC
${body} = String.Replace String ${body} test-key ${test_keys[2]}
Utils.Post Elements To URI ${OPERATIONS_API}/id-manager:releaseId ${body}
${get_resp} = RequestsLibrary.Get Request session ${CONFIG_API}/id-manager:id-pools/id-pool/${pool-name}/
- ${respjson} = RequestsLibrary.To Json ${get_resp.content} pretty_print=True
+ ${respjson} = RequestsLibrary.To Json ${get_resp.text} pretty_print=True
BuiltIn.Log ${respjson}
BuiltIn.Should Be Equal As Strings ${get_resp.status_code} 200
- ${child-pool-name} = BuiltIn.Should Match Regexp ${get_resp.content} ${pool-name}\.[-]?[0-9]+
+ ${child-pool-name} = BuiltIn.Should Match Regexp ${get_resp.text} ${pool-name}\.[-]?[0-9]+
BuiltIn.Log ${child-pool-name}
${get_releasedIds} = RequestsLibrary.Get Request session ${CONFIG_API}/id-manager:id-pools/id-pool/${child-pool-name}/released-ids-holder/
- ${respjson} = RequestsLibrary.To Json ${get_releasedIds.content} pretty_print=True
+ ${respjson} = RequestsLibrary.To Json ${get_releasedIds.text} pretty_print=True
BuiltIn.Log ${respjson}
Should Be Equal As Strings ${get_releasedIds.status_code} 200
- @{released_ids} = re.Findall <id>[0-9]+ ${get_releasedIds.content}
+ @{released_ids} = re.Findall <id>[0-9]+ ${get_releasedIds.text}
BuiltIn.Log ${released_ids}
Delete the ID Pool using deleteIdPool RPC
${get_resp} = RequestsLibrary.Get Request session ${CONFIG_API}/id-manager:id-pools/id-pool/${pool-name}/available-ids-holder/
${respjson} = RequestsLibrary.To Json ${get_resp.content} pretty_print=True
BuiltIn.Log ${respjson}
- BuiltIn.Should Contain ${get_resp.content} 14
+ BuiltIn.Should Contain ${get_resp.text} 14
BuiltIn.Should Be Equal As Strings ${get_resp.status_code} 200
${respjson} = RequestsLibrary.To Json ${get_oper_resp.content} pretty_print=True
BuiltIn.Log ${respjson}
BuiltIn.Should Be Equal As Strings ${get_oper_resp.status_code} 200
- BuiltIn.Should Not Contain ${get_oper_resp.content} down
- BuiltIn.Should Contain ${get_oper_resp.content} up up
+ BuiltIn.Should Not Contain ${get_oper_resp.text} down
+ BuiltIn.Should Contain ${get_oper_resp.text} up up
table entry
[Documentation] Checks for tables entry wrt the service the Interface is binded.
Collections.Remove From List ${dpn_ids} -1
OFT Create Vteps using Auto Tunnels @{tools_ips}
OFT Verify Vteps Created ${dpn_ids} ${tools_ips}
- OFT Create Vteps using Auto Tunnels @{TOOLS_SYSTEM_ALL_IPS}[-1]
+ OFT Create Vteps using Auto Tunnels ${TOOLS_SYSTEM_ALL_IPS}[-1]
OFT Verify Vteps Created ${DPN_ID_LIST} ${TOOLS_SYSTEM_ALL_IPS}
Delete and Verify single OFT TEPs
[Documentation] Delete single TEPs set to use OF based Tunnels and verify.
CompareStream.Run_Keyword_If_Less_Than_Sodium BuiltIn.Pass Execution Test case valid only for versions Sodium and above
- ${deleted_tools_ip_list} = BuiltIn.Create List @{TOOLS_SYSTEM_ALL_IPS}[0]
- OFT Delete Vteps using Auto Tunnels @{deleted_tools_ip_list}
- ${deleted_dpn_id_list} = BuiltIn.CreateList @{DPN_ID_LIST}[0]
+ ${deleted_tools_ip_list} = BuiltIn.Create List ${TOOLS_SYSTEM_ALL_IPS}[0]
+ OFT Delete Vteps using Auto Tunnels ${deleted_tools_ip_list}
+ ${deleted_dpn_id_list} = BuiltIn.CreateList ${DPN_ID_LIST}[0]
OFT Verify Vteps Deleted ${deleted_dpn_id_list} ${deleted_tools_ip_list}
*** Keywords ***
FOR ${tools_system_index} IN RANGE ${tools_system_len}
${tun_ip_list} = BuiltIn.CreateList @{tools_ip_list}
Collections.Remove From List ${tun_ip_list} ${tools_system_index}
- ${ports_output} = Utils.Run Command On Remote System And Log @{tools_ip_list}[${tools_system_index}] sudo ovs-ofctl -Oopenflow13 dump-ports-desc ${Bridge}
+ ${ports_output} = Utils.Run Command On Remote System And Log ${tools_ip_list}[${tools_system_index}] sudo ovs-ofctl -Oopenflow13 dump-ports-desc ${Bridge}
${port_numbers} = String.Get Regexp Matches ${ports_output} (\\d+).of.* ${1}
- BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Ingress Flows Created per Switch @{tools_ip_list}[${tools_system_index}] ${tun_ip_list}
+ BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Ingress Flows Created per Switch ${tools_ip_list}[${tools_system_index}] ${tun_ip_list}
... ${port_numbers}
- BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Egress Flows Created per Switch @{tools_ip_list}[${tools_system_index}] ${tun_ip_list}
+ BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Egress Flows Created per Switch ${tools_ip_list}[${tools_system_index}] ${tun_ip_list}
... ${port_numbers}
END
FOR ${tools_system_index} IN RANGE ${deleted_tep_len}
${tep_show_state_output_1} = KarafKeywords.Issue Command On Karaf Console ${TEP_SHOW_STATE}
BuiltIn.Should Not Contain ${tep_show_output} @{tools_ip_list}[${tools_system_index}]
- BuiltIn.Should Not Contain ${tep_show_state_output} @{tools_ip_list}[${tools_system_index}]
+ BuiltIn.Should Not Contain ${tep_show_state_output} ${tools_ip_list}[${tools_system_index}]
BuiltIn.Wait Until Keyword Succeeds 60 5 Utils.No Content From URI session ${CONFIG_API}/itm-state:dpn-endpoints/DPN-TEPs-info/@{dpn_id_list}[${tools_system_index}]/
${dst_dpn_id_list} = BuiltIn.Create List @{DPN_ID_LIST}
Collections.Remove From List ${dst_dpn_id_list} ${tools_system_index}
BuiltIn.Wait Until Keyword Succeeds 60 5 OFT Verify Vteps Deleted at Dpn Teps State per Interface @{dpn_id_list}[${tools_system_index}] ${dst_dpn_id_list}
- ${ovs_vsctl_output} = BuiltIn.Wait Until Keyword Succeeds 40 10 Utils.Run Command On Remote System And Log @{tools_ip_list}[${tools_system_index}]
+ ${ovs_vsctl_output} = BuiltIn.Wait Until Keyword Succeeds 40 10 Utils.Run Command On Remote System And Log ${tools_ip_list}[${tools_system_index}]
... sudo ovs-vsctl show
BuiltIn.Should Not Contain ${ovs_vsctl_output} remote_ip=flow
- BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Ingress Flows Deleted per Switch @{tools_ip_list}[${tools_system_index}]
- BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Egress Flows Deleted per Switch @{tools_ip_list}[${tools_system_index}]
+ BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Ingress Flows Deleted per Switch ${tools_ip_list}[${tools_system_index}]
+ BuiltIn.Wait Until Keyword Succeeds 40 10 OFT OVS Verify Egress Flows Deleted per Switch ${tools_ip_list}[${tools_system_index}]
END
OFT Verify Vteps Deleted at Dpn Teps State per Interface