@@ -1883,7 +1883,7 @@ private InlineResponse2004Data updateIpamSubnetInternal(Integer netrisSubnetId,
18831883 }
18841884 }
18851885
1886- VnetResAddBody createVnetInternal (VPCListing associatedVpc , String netrisVnetName , String netrisGateway , String netrisV6Gateway , Integer vxlanId , String netrisTag ) {
1886+ VnetResAddBody createVnetInternal (VPCListing associatedVpc , String netrisVnetName , String netrisGateway , String netrisV6Cidr , Integer vxlanId , String netrisTag ) {
18871887 logger .debug ("Creating Netris VPC vNet {} for CIDR {}" , netrisVnetName , netrisGateway );
18881888 try {
18891889 VnetAddBody vnetBody = new VnetAddBody ();
@@ -1901,9 +1901,9 @@ VnetResAddBody createVnetInternal(VPCListing associatedVpc, String netrisVnetNam
19011901 List <VnetAddBodyGateways > gatewaysList = new ArrayList <>();
19021902 gatewaysList .add (gatewayV4 );
19031903
1904- if (Objects .nonNull (netrisV6Gateway )) {
1904+ if (Objects .nonNull (netrisV6Cidr )) {
19051905 VnetAddBodyGateways gatewayV6 = new VnetAddBodyGateways ();
1906- gatewayV6 .prefix (netrisV6Gateway );
1906+ gatewayV6 .prefix (NetUtils . getIpv6Gateway ( netrisV6Cidr ) );
19071907 gatewayV6 .setDhcpEnabled (false );
19081908 gatewayV6 .setDhcp (dhcp );
19091909 gatewaysList .add (gatewayV6 );
@@ -1952,6 +1952,8 @@ VnetResAddBody createVnetInternal(VPCListing associatedVpc, String netrisVnetNam
19521952 }
19531953 }
19541954
1955+
1956+
19551957 private String getNetrisVpcNameSuffix (Long vpcId , String vpcName , Long networkId , String networkName , boolean isVpc ) {
19561958 String suffix = null ;
19571959 if (isVpc ) {
0 commit comments