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

Development: Remove VLAN_ID from template to prevent manual edits when

set automatic
This commit is contained in:
Ruben S. Montero 2016-06-13 13:06:11 +02:00
parent e98b13ba50
commit 1c4d9e3c89

View File

@ -292,6 +292,10 @@ int VirtualNetwork::post_update_template(string& error)
erase_template_attribute("VLAN_ID", vlan_id);
add_template_attribute("VLAN_ID", vlan_id);
}
else
{
remove_template_attribute("VLAN_ID");
}
erase_template_attribute("BRIDGE",new_bridge);