Since you can't use "ovs-ctl force-reload-kmod" on Fedora/RHEL, due to systemd dependencies, this commit adds the "force-reload-kmod" feature on ovs-systemd-reload.
Signed-off-by: Timothy Redaelli <[email protected]> --- rhel/usr_share_openvswitch_scripts_ovs-systemd-reload | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload b/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload index 5d2efc621..894df0427 100755 --- a/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload +++ b/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload @@ -40,6 +40,10 @@ add_managers() { : } -restart +if [ "$1" = "force-reload-kmod" ]; then + force_reload_kmod +else + restart +fi exit 0 -- 2.14.3 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
