]> git.proxmox.com Git - ovs.git/commit
rhel: Add support for "systemctl reload openvswitch"
authorTimothy Redaelli <tredaelli@redhat.com>
Fri, 3 Nov 2017 20:39:17 +0000 (21:39 +0100)
committerBen Pfaff <blp@ovn.org>
Wed, 8 Nov 2017 20:16:51 +0000 (12:16 -0800)
commitea36b04688f37cf45b7c2304ce31f0d29f212d54
tree55f9ea6c33e841a1a55e4b5bc8690b582d4c98f5
parent1cfa77b6c280f7dcdb0659aab0b0c8d55550ba2b
rhel: Add support for "systemctl reload openvswitch"

The reload procedure will trigger a script that saves the flows and tlv
maps (using ovs-save) then it restarts ovsdb-server, it stops ovs-vswitchd,
it sets other_config:flow-restore-wait=true (to wait till flow restore is
finished), it starts ovs-vswitchd, it restore the backupped flows/tlv
maps and it removes other_config:flow-restore-wait=true (logic mostly ripped
from ovs-ctl).

It uses systemctl with --job-mode=ignore-dependencies to restart ovsdb-server
and stop and start ovs-vswitchd in order to avoid systemd to restart the other
components due to dependencies (as explained in rhel/README.RHEL.rst).

Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
rhel/automake.mk
rhel/openvswitch-fedora.spec.in
rhel/usr_lib_systemd_system_openvswitch.service
rhel/usr_lib_systemd_system_ovsdb-server.service
rhel/usr_share_openvswitch_scripts_ovs-systemd-reload [new file with mode: 0755]