def GetLBNode(self):

        if self.extensions_enabled:
            return CitrixNetScalerLBNode(lbservice=self.lbservice,
                                         lbresource=self.lbresource)
        else:
            return LBNode(lbservice=self.lbservice, lbresource=self.lbresource)
Пример #2
0
 def GetLBNode(self):
     return LBNode(lbservice=self.lbservice, lbresource=self.lbresource)
Пример #3
0
 def __init__(self, lbservice, lbresource=None):
     LBNode.__init__(self, lbservice, lbresource) 
Пример #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
Пример #5
0
 def GetLBNode(self):
     return LBNode(lbservice=self)