feature #2858: Sanitize VLAN attribute defined in Address Range

This commit is contained in:
Ruben S. Montero committed 2014-05-26 00:14:28 +02:00
1 parent aca69ca418
commit e0bfd3f66c
1 file changed
+9
+9
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);