mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #2858: Sanitize VLAN attribute defined in Address Range
This commit is contained in:
1 parent
aca69ca418
commit
e0bfd3f66c
1 file changed
+9
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user