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:
parent
317c30d7f2
commit
3527cad6f2
@ -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 = ',';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user