LibVirtDriver.cc.patch
| src/vmm/LibVirtDriver.cc 2009-03-17 20:48:06.000000000 +0100 | ||
|---|---|---|
| 327 | 327 |
num = vm->get_template_attribute("NIC",attrs);
|
| 328 |
for(int i=0; i<num;i++,mac="",bridge="",target="",script="") |
|
| 328 |
for(int i=0; i<num;i++,mac="",bridge="",target="",script="",model="")
|
|
| 329 | 329 |
{
|
| 330 | 330 |
nic = dynamic_cast<const VectorAttribute *>(attrs[i]); |
| ... | ... | |
| 368 | 368 |
{
|
| 369 | 369 |
file << "\t\t\t<script path='" << script << "'/>" << endl; |
| 370 | 370 |
} |
| 371 | ||
| 372 |
script = nic->vector_value("MODEL");
|
|
| 373 | ||
| 374 |
if( !model.empty() ) |
|
| 375 |
{
|
|
| 376 |
file << "\t\t\t<model type='" << model << "'/>" << endl; |
|
| 377 |
} |
|
| 371 | 378 |
file << "\t\t</interface>" << endl; |