Skip to content

Commit

Permalink
B 5472: AR IP6 do not allow wrong attributes (#1376)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0dc47dc1b4912df5c91090867829d411de2da3cd)
  • Loading branch information
Pavel Czerný authored and rsmontero committed Aug 3, 2021
1 parent 3e703ec commit 8dda911
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/vnm/AddressRange.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
{
Expand All @@ -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;

Expand Down

0 comments on commit 8dda911

Please sign in to comment.