def GetLBSessionPersistence(self): if self.extensions_enabled: return CitrixNetScalerLBSessionPersistence( lbservice=self.lbservice, lbresource=self.lbresource) else: return LBSessionPersistence(lbservice=self.lbservice, lbresource=self.lbresource)
def validate_sessionpersistence_object_for_add(self, sessionpersistence): errors = LBSessionPersistence.validate_sessionpersistence_object_for_add( self, sessionpersistence) if "timeout" in sessionpersistence: error = self.validate_timeout_value(sessionpersistence) if error: errors.append(error) return errors
def validate_persistencetype_value(self, sessionpersistence, errors=[]): error = LBSessionPersistence.validate_persistencetype_value( self, sessionpersistence) if not error: return None if sessionpersistence.persistenceType == "SOURCE_IP": return None return error
def GetLBSessionPersistence(self): return LBSessionPersistence(lbservice=self.lbservice, lbresource=self.lbresource)
def __init__(self, lbservice, lbresource=None): LBSessionPersistence.__init__(self, lbservice, lbresource)
def GetLBSessionPersistence(self): return LBSessionPersistence(lbservice=self)