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

B 5472: AR IP6 do not allow wrong attributes (#1376)

(cherry picked from commit 0dc47dc1b4912df5c91090867829d411de2da3cd)
This commit is contained in:
Pavel Czerný 2021-08-03 09:24:09 +02:00 committed by Ruben S. Montero
parent 3e703ec4e0
commit 8dda911074
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -397,6 +397,11 @@ int AddressRange::update_attributes(
vup->replace("PREFIX_LENGTH", attr->vector_value("PREFIX_LENGTH"));
}
}
else
{
vup->remove("PREFIX_LENGTH");
}
if ( is_ipv6() )
{
@ -420,6 +425,12 @@ int AddressRange::update_attributes(
vup->replace("ULA_PREFIX", new_ula);
}
else
{
vup->remove("GLOBAL_PREFIX");
vup->remove("ULA_PREFIX");
}
unsigned long int new_size;