def service_enable(s_name, **connection_args):
 ret = True
 service = _service_get(s_name, **connection_args)
 if (service is None):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 try:
  NSService.enable(nitro, service)
 except NSNitroError as error:
  log.debug('netscaler module error - NSService.enable() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def service_enable ( s_name , ** connection_args ) : ret = True service = _service_get ( s_name , ** connection_args ) if ( service is None ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False try : NSService . enable ( nitro , service ) except NSNitroError as error : log . debug ( 'netscaler module error - NSService.enable() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
enable a service cli example: .