1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

feature #2858: Sanitize VLAN attribute defined in Address Range

This commit is contained in:
Ruben S. Montero 2014-05-26 00:14:28 +02:00
parent aca69ca418
commit e0bfd3f66c

View File

@ -165,6 +165,15 @@ int AddressRange::from_vattr(VectorAttribute *vattr, string& error_msg)
return -1;
}
/* ------------------------- VNET Attributes ---------------------------- */
bool b_vlan;
if ((vattr->vector_value("VLAN", b_vlan) == 0) && b_vlan)
{
vattr->replace("VLAN", "YES");
}
/* ------------------------ AR Internal Data ---------------------------- */
vattr->replace("AR_ID", id);