def GetLBNode(self): if self.extensions_enabled: return CitrixNetScalerLBNode(lbservice=self.lbservice, lbresource=self.lbresource) else: return LBNode(lbservice=self.lbservice, lbresource=self.lbresource)
def GetLBNode(self): return LBNode(lbservice=self.lbservice, lbresource=self.lbresource)
def __init__(self, lbservice, lbresource=None): LBNode.__init__(self, lbservice, lbresource)
def init_request_environment(self, req, env): LBNode.init_request_environment(self, req, env) self.extensions_enabled = self.reqenv["extensions_enabled"] self.tenant_id = shorten_string(env['account']) self.adapter = NitroLBNodeAdapter(self, self.extensions_enabled) self.adapter.extensions_enabled = self.extensions_enabled
def GetLBNode(self): return LBNode(lbservice=self)