@@ -23,7 +23,7 @@ ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
start $OPTIONS
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server \
- --no-monitor --system-id=random \
+ --no-monitor --system-id=random --freeze-datapath \
--ovs-user=${OVS_USER_ID} \
restart $OPTIONS
TimeoutSec=300
@@ -306,6 +306,9 @@ ovs_save () {
}
save_flows_if_required () {
+ if test X"$FREEZE_DATAPATH" != Xyes; then
+ action "Freezing datapath" ovs-appctl dpctl/datapath-icing system@ovs-system enabled
+ fi
if test X"$DELETE_BRIDGES" != Xyes; then
action "Saving flows" ovs_save save-flows "${script_flows}"
fi
@@ -494,6 +497,7 @@ set_defaults () {
DELETE_BRIDGES=no
DELETE_TRANSIENT_PORTS=no
+ FREEZE_DATAPATH=no
DAEMON_CWD=/
FORCE_COREFILES=yes
This commit uses the previous to stop it from deleting active flows in the datapath. Signed-off-by: Aaron Conole <aconole@redhat.com> --- rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 2 +- utilities/ovs-ctl.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)