1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

Support for type in vif (Xen). Now Windows guests can use the Network manager easily

This commit is contained in:
Ruben S. Montero 2010-10-29 23:00:38 +02:00
parent 317c30d7f2
commit 3527cad6f2

View File

@ -57,6 +57,7 @@ int XenDriver::deployment_description(
string mac = "";
string bridge = "";
string model = "";
const VectorAttribute * graphics;
@ -347,10 +348,17 @@ int XenDriver::deployment_description(
mac = nic->vector_value("MAC");
bridge = nic->vector_value("BRIDGE");
model = nic->vector_value("MODEL");
if( !model.empty() )
{
file << "type=" << model;
pre_char = ',';
}
if( !mac.empty() )
{
file << "mac=" << mac;
file << pre_char << "mac=" << mac;
pre_char = ',';
}