The first time after boot, when openvswitch is started by using
--delete-transient-ports-on-boot ovs-ctl option, all transient ports will be
removed.

Signed-off-by: Timothy Redaelli <[email protected]>
---
 utilities/ovs-ctl.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 575ffa03..c3130fa3 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -189,6 +189,11 @@ do_start_ovsdb () {
         if test X"$DELETE_TRANSIENT_PORTS" = Xyes; then
             del_transient_ports
         fi
+        if test X"$DELETE_TRANSIENT_PORTS_ON_BOOT" = Xyes && \
+            ! test -f "$rundir/deleted_transient_ports"; then
+            del_transient_ports
+            : > "$rundir/deleted_transient_ports"
+        fi
     fi
 }
 
@@ -503,6 +508,7 @@ set_defaults () {
 
     DELETE_BRIDGES=no
     DELETE_TRANSIENT_PORTS=no
+    DELETE_TRANSIENT_PORTS_ON_BOOT=no
 
     DAEMON_CWD=/
     FORCE_COREFILES=yes
-- 
2.12.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to