From 041c19eeea7ac2bb445b2afbfd7fe76e8a724636 Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Wed, 12 Mar 2014 17:36:50 +0000 Subject: /testing/openvswitch - version bump to 2.01 + revised init scripts ** This is a clean patch against Master ** Version bump to 2.0.1 Init scripts improved to start ovsdb-server & ovs-vswitchd before networking comes up. ovs-dbserver is now a hard dependency for ovs-vswitchd to keep them in sync & prevent a hanging boot process. LXC Guests now autostart correctly on reboots. MACVLAN interfaces work out of the box with LXC. To use VETH interfaces with LXC do *NOT* set 'lxc.network.link' in /var/lib/lxc/guest/config - the VETH must be added manually with: ovs-vsctl --may-exist add-br $BRIDGE ovs-vsctl --may-exist add-port $BRIDGE $PORT I removed ovs-controller as it's not needed to run openvswitch & is no longer part of the current git. ovs-monitor will be removed from a default installation in the next release as it is poorly maintained & nobody really uses it. I've tested openvswitch 2.0.1 & have it bridging VETH across NAT & bridging MACVLAN interfaces internally without any problems. Bonding should also work. --- testing/openvswitch/ovs-modules.initd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testing/openvswitch/ovs-modules.initd (limited to 'testing/openvswitch/ovs-modules.initd') diff --git a/testing/openvswitch/ovs-modules.initd b/testing/openvswitch/ovs-modules.initd new file mode 100644 index 000000000..204348d73 --- /dev/null +++ b/testing/openvswitch/ovs-modules.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +MODULES="openvswitch" + +depend() { + before ovsdb-server +} + + +start() { + ebegin "Loading Openvswitch kernel modules" + for mod in $MODULES; do + modprobe -q $mod + done + eend $? +} + +stop() { + ebegin "Unloading Openvswitch kernel modules" + for mod in $MODULES; do + rmmod $mod + done + eend $? +} + -- cgit v1.2.3