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

(cherry picked from commit 0dc47dc1b4912df5c91090867829d411de2da3cd)
This commit is contained in:
Pavel Czerný authored and Ruben S. Montero committed 2021-08-03 09:27:10 +02:00
1 parent 3e703ec4e0
commit 8dda911074
1 file changed
+11
+11
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;