#!/usr/bin/env python
#
# xapi plugin script to update the cache of configuration items in the
-# ovs-vswitchd configuration file that are managed in the xapi database
-# when integrated with Citrix management tools.
+# ovs-vswitchd configuration that are managed in the xapi database when
+# integrated with Citrix management tools.
# Copyright (C) 2009, 2010 Nicira Networks, Inc.
#
import subprocess
vsctl="/usr/bin/ovs-vsctl"
-cacert_filename="/etc/ovs-vswitchd.cacert"
+cacert_filename="/etc/openvswitch/vswitchd.cacert"
# Delete the CA certificate, so that we go back to boot-strapping mode
def delete_cacert():
"--", "del-ssl",
"--", "--bootstrap", "set-ssl",
"/etc/xensource/xapi-ssl.pem",
- "/etc/xensource/xapi-ssl.pem",
- "/etc/ovs-vswitchd.cacert",
+ cacert_filename,
"--", "set", "Open_vSwitch", ".",
'managers="ssl:' + controller + ':6632"'])