mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-27 03:21:29 +03:00
feature #2858: Sanitize VLAN attribute defined in Address Range
This commit is contained in:
parent
aca69ca418
commit
e0bfd3f66c
@ -165,6 +165,15 @@ int AddressRange::from_vattr(VectorAttribute *vattr, string& error_msg)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ------------------------- VNET Attributes ---------------------------- */
|
||||||
|
|
||||||
|
bool b_vlan;
|
||||||
|
|
||||||
|
if ((vattr->vector_value("VLAN", b_vlan) == 0) && b_vlan)
|
||||||
|
{
|
||||||
|
vattr->replace("VLAN", "YES");
|
||||||
|
}
|
||||||
|
|
||||||
/* ------------------------ AR Internal Data ---------------------------- */
|
/* ------------------------ AR Internal Data ---------------------------- */
|
||||||
|
|
||||||
vattr->replace("AR_ID", id);
|
vattr->replace("AR_ID", id);
|
||||||
|
Loading…
Reference in New Issue
Block a user