Skip to content

Commit

Permalink
ipv6CidrBlocks bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohann0617 committed Jan 7, 2025
1 parent cb54ef1 commit 078f5d7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,13 @@ private Subnet createSubnet(
return null;
}
} else {
String v6Cidr = vcn.getIpv6CidrBlocks().get(0);
List<String> ipv6CidrBlocks = vcn.getIpv6PrivateCidrBlocks();
String v6Cidr;
if (null == ipv6CidrBlocks || ipv6CidrBlocks.isEmpty()) {
v6Cidr = IPV6_CIDR_BLOCK;
} else {
v6Cidr = ipv6CidrBlocks.get(0);
}
String subnetV6Cidr = v6Cidr.replaceAll("/56", "/64");
CreateSubnetDetails createSubnetDetails =
CreateSubnetDetails.builder()
Expand Down

0 comments on commit 078f5d7

Please sign in to comment.