xenserver: Use first-class pool vswitch controller configuration field
authorIan Campbell <ian.campbell@citrix.com>
Wed, 30 Sep 2009 10:57:20 +0000 (11:57 +0100)
committerBen Pfaff <blp@nicira.com>
Wed, 30 Sep 2009 19:42:15 +0000 (12:42 -0700)
This has been implemented in our vswitch branch to trunk so use it
instead of the other-config key.

xenserver/etc_xapi.d_plugins_vswitch-cfg-update

index 7472d1b..4db8cc3 100755 (executable)
@@ -47,7 +47,7 @@ def update(session, args):
         raise XenAPIPlugin.Failure("MORE_THAN_ONE_POOL_FOR_HOST", [])
     pool = session.xenapi.pool.get_record(pools[0])
     try:
-        controller = pool["other_config"]["vSwitchController"]
+        controller = pool["vswitch_controller"]
     except KeyError, e:
         controller = ""
     currentController = vswitchCurrentController()