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

Add Xen conf IP address for NIC

This commit is contained in:
Daniel Molina 2010-11-19 18:20:35 +01:00
parent 631a4c02f7
commit a8f794bdde

View File

@ -55,6 +55,7 @@ int XenDriver::deployment_description(
const VectorAttribute * nic;
string ip = "";
string mac = "";
string bridge = "";
string model = "";
@ -346,6 +347,7 @@ int XenDriver::deployment_description(
file << " '";
ip = nic->vector_value("IP");
mac = nic->vector_value("MAC");
bridge = nic->vector_value("BRIDGE");
model = nic->vector_value("MODEL");
@ -362,6 +364,12 @@ int XenDriver::deployment_description(
pre_char = ',';
}
if( !ip.empty() )
{
file << pre_char << "ip=" << ip;
pre_char = ',';
}
if( !bridge.empty() )
{
file << pre_char << "bridge=" << bridge;