I thought that this was going to be more difficult (see this email thread:
http://openvswitch.org/pipermail/dev_openvswitch.org/2010-January/001023.html
) but it turned out to be trivial.
management_pif = None
-dbcache_file = "/var/lib/openvswitch/dbcache"
+dbcache_file = "/var/xapi/network.dbcache"
#
# Logging.
VNCTERM_CORE_DIR = '/var/xen/vncterm'
VSWITCH_CORE_DIR = '/var/xen/vswitch'
OVS_VSWITCH_CONF = '/etc/ovs-vswitchd.conf'
-OVS_VSWITCH_DBCACHE = '/var/lib/openvswitch/dbcache'
+OVS_VSWITCH_DBCACHE = '/var/xapi/network.dbcache'
XENSOURCE_INVENTORY = '/etc/xensource-inventory'
OEM_CONFIG_DIR = '/var/xsconfig'
OEM_CONFIG_FILES_RE = re.compile(r'^.*xensource-inventory$')
fi
fi
-if test ! -e /var/lib/openvswitch/dbcache; then
+if test ! -e /var/xapi/network.dbcache; then
if test "$1" = 1; then
printf "Creating xapi database cache... "
else
rm -f /etc/ovs-vswitchd.conf
rm -f /etc/sysconfig/vswitch
rm -f /etc/ovs-vswitchd.cacert
- rm -f /var/lib/openvswitch/dbcache
+ rm -f /var/xapi/network.dbcache
# Configure system to use bridge
echo bridge > /etc/xensource/network.conf