Change OVS restart to use restart cmd 54/74954/2
authorTim Rozet <trozet@redhat.com>
Wed, 8 Aug 2018 16:26:09 +0000 (12:26 -0400)
committerTim Rozet <trozet@redhat.com>
Wed, 8 Aug 2018 21:13:22 +0000 (17:13 -0400)
Using the start and stop commands results in 2 commands, where if the
robot connection to the node is via the same IP used on an OVS bridge,
will sever the connection on the first command. Using the 'restart'
command instead preserves the connection and restarts OVS in a single
command.

Change-Id: I05b234ed95e5456fbb53fbb4fea695802883cf48
Signed-off-by: Tim Rozet <trozet@redhat.com>
csit/libraries/OVSDB.robot

index 055de652004905a672f02158667db5b2c149b209..33af72ff4774aa4de249c4f72875e82dcaf86249 100644 (file)
@@ -161,9 +161,7 @@ Clean OVSDB Test Environment
 Restart OVSDB
     [Arguments]    ${ovs_ip}
     [Documentation]    Restart the OVS node without cleaning the current configuration.
-    ${output} =    Utils.Run Command On Mininet    ${ovs_ip}    sudo /usr/share/openvswitch/scripts/ovs-ctl stop
-    BuiltIn.Log    ${output}
-    ${output} =    Utils.Run Command On Mininet    ${ovs_ip}    sudo /usr/share/openvswitch/scripts/ovs-ctl start
+    ${output} =    Utils.Run Command On Mininet    ${ovs_ip}    sudo systemctl restart openvswitch
     BuiltIn.Log    ${output}
 
 Set Controller In OVS Bridge