mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
CreateVpc and AssociateVpcCidrBlock with AmazonProvidedIpv6CidrBlock built the /56 by concatenating random hex digits, so a group that drew a leading zero kept it: about one block in eight came back as, for example, 2600:1f18:21c4:0200::/56 instead of 2600:1f18:21c4:200::/56, and one in 256 wrote out an all-zero fourth group instead of folding it into the "::". The block now goes through CidrCanonicalizer, which writes RFC 5952 text. VPCs already held in a persistent store keep the text they were created with. The endpoint test that derives /64 subnets from the VPC block now works from the address bytes, because canonical text drops a zero fourth group. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>