From df519f69cba08847050ea467f35b46b5d75bb988 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Fri, 25 Jan 2013 14:42:12 +0100 Subject: Correctly detect Open vSwitch device types ifup-ovs in the openvswitch package uses the types: - OVSBridge - OVSPort - OVSIntPort - OVSBond to configure the various Open vSwitch device types. Automatically detecting these avoids the need to pass in DEVICETYPE=ovs or to name all bridge "ovsN". --- sysconfig/network-scripts/network-functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index c57093df..dd968f0b 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -150,6 +150,9 @@ source_config () InfiniBand | infiniband) DEVICETYPE="ib" ;; + OVS*) + DEVICETYPE="ovs" + ;; esac if [ -n "$HWADDR" ]; then HWADDR=$(echo $HWADDR | awk '{ print toupper($0) }') -- cgit v1.2.1