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)
Exemple #3
0
 def __init__(self, lbservice, lbresource=None):
     LBNode.__init__(self, lbservice, lbresource) 
Exemple #4
0
 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
Exemple #5
0
 def GetLBNode(self):
     return LBNode(lbservice=self)