raise XenAPIPlugin.Failure("MORE_THAN_ONE_POOL_FOR_HOST", [])
pool = session.xenapi.pool.get_record(pools[0])
try:
- controller = pool["other_config"]["niciraController"]
+ controller = pool["other_config"]["vSwitchController"]
except KeyError, e:
controller = ""
currentController = vswitchCurrentController()
self.hostsInPool = 0
self.hostsUpdated = 0
- self.controller = data.GetPoolForThisHost().get("other_config", {}).get("vswitchController", "")
+ self.controller = data.GetPoolForThisHost().get("other_config", {}).get("vSwitchController", "")
choiceDefs = [
ChoiceDef(Lang("Set pool-wide controller"),
def SetController(self, ip):
self.hostsInPool = 0
self.hostsUpdated = 0
- Task.Sync(lambda s: self._modifyPoolConfig(s, "vswitchController", ip))
+ Task.Sync(lambda s: self._modifyPoolConfig(s, "vSwitchController", ip))
# Should be done asynchronously, maybe with an external script?
Task.Sync(lambda s: self._updateActiveServers(s))