dump flows on ovs after every test case for logging purposes 53/30453/4
authorJamo Luhrsen <jluhrsen@redhat.com>
Tue, 1 Dec 2015 22:55:48 +0000 (14:55 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 4 Dec 2015 12:52:55 +0000 (12:52 +0000)
Change-Id: I57faa8f0487a5469fbbc44aea3ed9385cf7c1e5b
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/libraries/OVSDB.robot
csit/suites/ovsdb/Openstack_Neutron/001__connection_manager.robot
csit/suites/ovsdb/Openstack_Neutron/010__ovsdb_flow.robot

index 7fd901d51f6650f328880be4dd8c0ab126e8c146..71e407c4d3ae61563896a714e1f779fa4154e5e0 100644 (file)
@@ -57,3 +57,11 @@ Add Vxlan To Bridge
     ${resp}    RequestsLibrary.Put    session    ${SOUTHBOUND_CONFIG_API}${mininet_ip}:${OVSDB_PORT}%2Fbridge%2F${bridge_num}/termination-point/${vxlan_port}/    data=${body}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
+
+Collect OVSDB Debugs
+    [Arguments]    ${switch}=br-int
+    [Documentation]    Used to log useful test debugs for OVSDB related system tests.
+    ${output}=    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl show
+    Log    ${output}
+    ${output}=    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-ofctl -O OpenFlow13 dump-flows ${switch} | cut -d',' -f3-
+    Log    ${output}
\ No newline at end of file
index 9217eed14794a056bacc84424695ef8e43efce6f..70e53c11738dce4ac78fa4554238c7a49fe4ad33 100644 (file)
@@ -2,6 +2,7 @@
 Documentation     Test suite connecting ODL to Mininet
 Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
 Suite Teardown    Delete All Sessions
+Test Teardown     Collect OVSDB Debugs
 Library           SSHLibrary
 Library           Collections
 Library           OperatingSystem
@@ -11,6 +12,7 @@ Library           RequestsLibrary
 Library           ../../../libraries/Common.py
 Variables         ../../../variables/Variables.py
 Resource          ../../../libraries/Utils.robot
+Resource          ../../../libraries/OVSDB.robot
 
 *** Variables ***
 ${OVSDB_PORT}     6640
index dab0742e25e88c38543285541f34313904bf5b1d..14f615936d924e72e35cefe0d21dd44b0075e908 100644 (file)
@@ -2,6 +2,7 @@
 Documentation     Checking Network created in OVSDB are pushed to OpenDaylight
 Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
 Suite Teardown    Delete All Sessions
+Test Teardown     Collect OVSDB Debugs
 Library           SSHLibrary
 Library           Collections
 Library           OperatingSystem
@@ -11,6 +12,7 @@ Library           RequestsLibrary
 Library           ../../../libraries/Common.py
 Variables         ../../../variables/Variables.py
 Resource          ../../../libraries/Utils.robot
+Resource          ../../../libraries/OVSDB.robot
 
 *** Variables ***
 ${ODLREST}        /controller/nb/v2/neutron