LibVirtDriver.cc.patch.patch

Bug fix - Redmine Admin, 03/17/2009 09:14 PM

Download (987 Bytes)

View differences:

src/vmm/LibVirtDriver.cc 2009-03-17 21:08:54.000000000 +0100
57 57
     string  mac        = "";
58 58
     string  bridge     = "";
59 59
     string  script     = "";
60
     string  model     = "";
60 61

  
61 62
     const VectorAttribute * graphics;
62 63
     
......
327 328

  
328 329
     num = vm->get_template_attribute("NIC",attrs);
329 330

  
330
     for(int i=0; i<num;i++,mac="",bridge="",target="",script="")
331
     for(int i=0; i<num;i++,mac="",bridge="",target="",script="",model="")
331 332
     {
332 333
         nic = dynamic_cast<const VectorAttribute *>(attrs[i]);
333 334
         
......
368 369
         {
369 370
             file << "\t\t\t<script path='" << script << "'/>" << endl;
370 371
         }
372

  
373
         script = nic->vector_value("MODEL");
374
     
375
         if( !model.empty() )
376
         {
377
             file << "\t\t\t<model type='" << model << "'/>" << endl;
378
         }
371 379
         
372 380
         file << "\t\t</interface>" << endl;
373 381