From 5452b18d2374af1f192dea4cb53213ea6d7dc59e Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 25 Feb 2013 13:02:38 +0000 Subject: [PATCH] Ensure that openvswitch is installed for Fedora Fixes bug 1053537 Change-Id: I901aa5adf34f69f2bc0eee18dc426615240f273e --- lib/quantum_plugins/ovs_base | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/quantum_plugins/ovs_base b/lib/quantum_plugins/ovs_base index 8563674fde..915129e10e 100644 --- a/lib/quantum_plugins/ovs_base +++ b/lib/quantum_plugins/ovs_base @@ -24,10 +24,13 @@ function _quantum_ovs_base_install_agent_packages() { if is_ubuntu; then kernel_version=`cat /proc/version | cut -d " " -f3` install_package make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms linux-headers-$kernel_version - else - ### FIXME(dtroyer): Find RPMs for OpenVSwitch + elif is_fedora; then + install_package openvswitch + # Ensure that the service is started + restart_service openvswitch + elif is_suse; then + ### FIXME: Find RPMs for OpenVSwitch echo "OpenVSwitch packages need to be located" - # Fedora does not started OVS by default restart_service openvswitch fi }