aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2013-01-25 14:42:12 +0100
committerBill Nottingham <notting@redhat.com>2013-01-25 11:24:21 -0500
commitdf519f69cba08847050ea467f35b46b5d75bb988 (patch)
treea4861f6eaa094b5b00cd93b0fc980d0e78a3e97a
parent4df13e9715b92743a4b842e2a0df6a9c36a9790c (diff)
downloadinitscripts-df519f69cba08847050ea467f35b46b5d75bb988.tar
initscripts-df519f69cba08847050ea467f35b46b5d75bb988.tar.gz
initscripts-df519f69cba08847050ea467f35b46b5d75bb988.tar.bz2
initscripts-df519f69cba08847050ea467f35b46b5d75bb988.tar.xz
initscripts-df519f69cba08847050ea467f35b46b5d75bb988.zip
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".
-rw-r--r--sysconfig/network-scripts/network-functions3
1 files changed, 3 insertions, 0 deletions
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) }')