BUG 8529: validate vlan tag in operational 54/57654/5
authorJamo Luhrsen <jluhrsen@redhat.com>
Tue, 23 May 2017 00:09:35 +0000 (17:09 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 24 May 2017 21:38:35 +0000 (21:38 +0000)
Change-Id: Ie2b5e74060f62b3ae7d30e7113fad045030db963
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/suites/ovsdb/Southbound_Domain/020__connection_manager.robot

index 837b20df3116722b620b74e0f70866059bd0dc15..405aa1324b4f6661b867747aa013416086f220a4 100644 (file)
@@ -124,6 +124,31 @@ Get Operational Topology after Deletion of Bridge
     @{list}    Create List    ${BRIDGE2}
     Wait Until Keyword Succeeds    8s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}/topology/ovsdb:1    ${list}
 
+Trunk And Vlan Tag Is Removed From Operational
+    [Documentation]    Verify that when the vlan tag is added and removed from an ovs port, it should be accurately reflected
+    ...    in the operational store. Also verify that when all trunks are cleared from ovs, it's accurate in operational.
+    [Tags]    bug 8529
+    Clean OVSDB Test Environment    ${TOOLS_SYSTEM_IP}
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl set-manager tcp:${ODL_SYSTEM_IP}:6640
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl add-br vlan-tag-br
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl add-port vlan-tag-br vlan-tag-port
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl set port vlan-tag-port tag=81
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl set port vlan-tag-port trunks=[181,182]
+    Wait Until Keyword Succeeds    5s    1s    Verify OVS Reports Connected
+    Collect OVSDB Debugs
+    @{list}    Create List    vlan-tag-br    vlan-tag-port    "ovsdb:vlan-tag":81    "trunk":181    "trunk":182
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements At URI    ${OPERATIONAL_TOPO_API}/topology/ovsdb:1    ${list}
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl clear port vlan-tag-port tag
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl remove port vlan-tag-port trunks 181
+    @{list}    Create List    "ovsdb:vlan-tag":81    "trunk":181
+    Collect OVSDB Debugs
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}/topology/ovsdb:1    ${list}
+    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl clear port vlan-tag-port trunks
+    @{list}    Create List    "ovsdb:vlan-tag":81    "trunk":181    "trunk":182
+    Collect OVSDB Debugs
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}/topology/ovsdb:1    ${list}
+    [Teardown]    Clean OVSDB Test Environment    ${TOOLS_SYSTEM_IP}
+
 Check For Bug 4756
     [Documentation]    bug 4756 has been seen in the OVSDB Southbound suites. This test case should be one of the last test
     ...    case executed.