@@ -1825,7 +1825,7 @@ private InlineResponse2004Data updateIpamSubnetInternal(Integer netrisSubnetId,
18251825 }
18261826 }
18271827
1828- VnetResAddBody createVnetInternal (VPCListing associatedVpc , String netrisVnetName , String netrisGateway , String netrisV6Gateway , Integer vxlanId , String netrisTag ) {
1828+ VnetResAddBody createVnetInternal (VPCListing associatedVpc , String netrisVnetName , String netrisGateway , String netrisV6Cidr , Integer vxlanId , String netrisTag ) {
18291829 logger .debug ("Creating Netris VPC vNet {} for CIDR {}" , netrisVnetName , netrisGateway );
18301830 try {
18311831 VnetAddBody vnetBody = new VnetAddBody ();
@@ -1843,9 +1843,9 @@ VnetResAddBody createVnetInternal(VPCListing associatedVpc, String netrisVnetNam
18431843 List <VnetAddBodyGateways > gatewaysList = new ArrayList <>();
18441844 gatewaysList .add (gatewayV4 );
18451845
1846- if (Objects .nonNull (netrisV6Gateway )) {
1846+ if (Objects .nonNull (netrisV6Cidr )) {
18471847 VnetAddBodyGateways gatewayV6 = new VnetAddBodyGateways ();
1848- gatewayV6 .prefix (netrisV6Gateway );
1848+ gatewayV6 .prefix (NetUtils . getIpv6Gateway ( netrisV6Cidr ) );
18491849 gatewayV6 .setDhcpEnabled (false );
18501850 gatewayV6 .setDhcp (dhcp );
18511851 gatewaysList .add (gatewayV6 );
@@ -1894,6 +1894,8 @@ VnetResAddBody createVnetInternal(VPCListing associatedVpc, String netrisVnetNam
18941894 }
18951895 }
18961896
1897+
1898+
18971899 private String getNetrisVpcNameSuffix (Long vpcId , String vpcName , Long networkId , String networkName , boolean isVpc ) {
18981900 String suffix = null ;
18991901 if (isVpc ) {
0 commit comments