X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FOpenStackOperations.robot;h=e8f667d6202ee89b1fb29d24722ff6b178696353;hb=20b21b6680f8feb23fc8ea14500daa7ca1169df4;hp=12ce06858d34cad505a49bde7f0d153bd6e87d31;hpb=0d8133ff7056aa70f48ada586494b00950e1c746;p=integration%2Ftest.git diff --git a/csit/libraries/OpenStackOperations.robot b/csit/libraries/OpenStackOperations.robot index 12ce06858d..e8f667d620 100644 --- a/csit/libraries/OpenStackOperations.robot +++ b/csit/libraries/OpenStackOperations.robot @@ -1114,6 +1114,8 @@ Cleanup Router OpenStack Suite Setup [Documentation] Wrapper teardown keyword that can be used in any suite running in an openstack environement SetupUtils.Setup_Utils_For_Setup_And_Teardown + @{tcpdump_port_6653_conn_ids} = OpenStackOperations.Start Packet Capture On Nodes tcpdump_port_6653 port 6653 ${OS_CONTROL_NODE_IP} ${OS_COMPUTE_1_IP} ${OS_COMPUTE_2_IP} + BuiltIn.Set Suite Variable @{tcpdump_port_6653_conn_ids} Run Keyword If "${PRE_CLEAN_OPENSTACK_ALL}"=="True" OpenStack Cleanup All DevstackUtils.Devstack Suite Setup Add OVS Logging On All OpenStack Nodes @@ -1124,6 +1126,7 @@ OpenStack Suite Teardown ... and deleted. As other global cleanup tasks are needed, they can be added here and the suites will all ... benefit automatically. OpenStack Cleanup All + OpenStackOperations.Stop Packet Capture On Nodes ${tcpdump_port_6653_conn_ids} SSHLibrary.Close All Connections Copy DHCP Files From Control Node @@ -1161,8 +1164,9 @@ Start Packet Capture On Nodes ... but ${EMPTY} can be used for the tag and filter. ${suite_} = BuiltIn.Evaluate """${SUITE_NAME}""".replace(" ","_").replace("/","_").replace(".","_") ${tag_} = BuiltIn.Catenate SEPARATOR=__ ${tag} ${suite_} - @{capture_conn_ids} = Tcpdump.Start Packet Capture on Nodes tag=${tag_} filter=${filter} ips=${ips} - BuiltIn.Set Suite Variable @{capture_conn_ids} + @{conn_ids} = Tcpdump.Start Packet Capture on Nodes tag=${tag_} filter=${filter} ips=${ips} + [Return] @{conn_ids} Stop Packet Capture On Nodes - Tcpdump.Stop Packet Capture on Nodes ${capture_conn_ids} + [Arguments] ${conn_ids}=@{EMPTY} + Tcpdump.Stop Packet Capture on Nodes ${conn_ids}