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:
parent
3e703ec4e0
commit
8dda911074
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user