~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to cluster/server-marshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
  ccMeta.correlationId = adb_attachVolumeType_get_correlationId(avt, env);
88
88
  ccMeta.userId = adb_attachVolumeType_get_userId(avt, env);
89
89
  
90
 
  cid = adb_attachVolumeType_get_correlationId(avt, env);
 
90
  //cid = adb_attachVolumeType_get_correlationId(avt, env);
91
91
  
92
92
  volumeId = adb_attachVolumeType_get_volumeId(avt, env);
93
93
  instanceId = adb_attachVolumeType_get_instanceId(avt, env);
137
137
  ccMeta.correlationId = adb_detachVolumeType_get_correlationId(dvt, env);
138
138
  ccMeta.userId = adb_detachVolumeType_get_userId(dvt, env);
139
139
  
140
 
  cid = adb_detachVolumeType_get_correlationId(dvt, env);
 
140
  //cid = adb_detachVolumeType_get_correlationId(dvt, env);
141
141
  
142
142
  volumeId = adb_detachVolumeType_get_volumeId(dvt, env);
143
143
  instanceId = adb_detachVolumeType_get_instanceId(dvt, env);
187
187
  ccMeta.correlationId = adb_stopNetworkType_get_correlationId(snt, env);
188
188
  ccMeta.userId = adb_stopNetworkType_get_userId(snt, env);
189
189
  
190
 
  userName = adb_stopNetworkType_get_userId(snt, env);
191
 
  cid = adb_stopNetworkType_get_correlationId(snt, env);
 
190
  //userName = adb_stopNetworkType_get_userId(snt, env);
 
191
  //cid = adb_stopNetworkType_get_correlationId(snt, env);
192
192
  
193
193
  vlan = adb_stopNetworkType_get_vlan(snt, env);
194
194
  netName = adb_stopNetworkType_get_netName(snt, env);
383
383
  ccMeta.correlationId = adb_assignAddressType_get_correlationId(aat, env);
384
384
  ccMeta.userId = adb_assignAddressType_get_userId(aat, env);
385
385
  
386
 
  cid = adb_assignAddressType_get_correlationId(aat, env);
 
386
  //cid = adb_assignAddressType_get_correlationId(aat, env);
387
387
  
388
388
  src = adb_assignAddressType_get_source(aat, env);
389
389
  dst = adb_assignAddressType_get_dest(aat, env);
484
484
  ruleLen = adb_configureNetworkType_sizeof_rules(cnt, env);
485
485
  done=0;
486
486
  destNameLast = strdup("EUCAFIRST");
 
487
  if (!destNameLast) {
 
488
    logprintf("ERROR: out of memory\n");
 
489
    status = AXIS2_FALSE;
 
490
    snprintf(statusMessage, 255, "ERROR");
 
491
    return ret;
 
492
  }
487
493
  
488
494
  for (j=0; j<ruleLen && !done; j++) {
489
495
    nr = adb_configureNetworkType_get_rules_at(cnt, env, j);
500
506
    }
501
507
    if (destNameLast) free(destNameLast);
502
508
    destNameLast = strdup(destName);
 
509
    if (!destNameLast) {
 
510
      logprintf("ERROR: out of memory\n");
 
511
      status = AXIS2_FALSE;
 
512
      snprintf(statusMessage, 255, "ERROR");
 
513
      return ret;
 
514
    }
503
515
 
504
516
    userNames = NULL;
505
517
    namedLen = adb_networkRule_sizeof_userNames(nr, env);
549
561
      done++;
550
562
    }
551
563
  }
 
564
  if (destNameLast) free(destNameLast);
552
565
  
553
566
  if (done) {
554
567
    logprintf("ERROR: doConfigureNetwork() returned fail %d\n", rc);
1009
1022
  
1010
1023
  ret = adb_RunInstancesResponse_create(env);
1011
1024
  adb_RunInstancesResponse_set_RunInstancesResponse(ret, env, rirt);
1012
 
  
 
1025
  free(networkIndexList);
 
1026
  free(macAddrs);
 
1027
  free(netNames);
 
1028
  free(instIds);
1013
1029
  
1014
1030
  return(ret);
1015
1031
}