Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Update reserved start addresses for a new subnet
Browse files Browse the repository at this point in the history
This commit updates the calculated reserved start addresses for a new subnet.

It appears that the outputs for a new subnet within createUiDefinition now return a startAddress
of 10.0.0.0 instead of 10.0.0.1, assuming address prefix size 10.0.0.0/25. 10.0.0.0-10.0.0.3
are reserved addresses, so calculate the first available address as 10.0.0.4.
  • Loading branch information
russcam committed Aug 30, 2019
1 parent 7ca3f69 commit e3322ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -1939,9 +1939,10 @@
"newSubNetReservedStartAddresses": [
"[variables('newSubNetStartAddress')]",
"[concat(variables('newSubNetStartAddressFirstOctets'), '.', string(add(variables('newSubNetStartAddressLastOctet'), 1)))]",
"[concat(variables('newSubNetStartAddressFirstOctets'), '.', string(add(variables('newSubNetStartAddressLastOctet'), 2)))]"
"[concat(variables('newSubNetStartAddressFirstOctets'), '.', string(add(variables('newSubNetStartAddressLastOctet'), 2)))]",
"[concat(variables('newSubNetStartAddressFirstOctets'), '.', string(add(variables('newSubNetStartAddressLastOctet'), 3)))]"
],
"newSubNetFirstAvailableAddress": "[concat(variables('newSubNetStartAddressFirstOctets'), '.', string(add(variables('newSubNetStartAddressLastOctet'), 3)))]",
"newSubNetFirstAvailableAddress": "[concat(variables('newSubNetStartAddressFirstOctets'), '.', string(add(variables('newSubNetStartAddressLastOctet'), 4)))]",
"vNetLoadBalancerIp": "[if(equals('existing', parameters('vNetNewOrExisting')), parameters('vNetLoadBalancerIp'), if(contains(variables('newSubNetReservedStartAddresses'), parameters('vNetLoadBalancerIp')), variables('newSubNetFirstAvailableAddress'), parameters('vNetLoadBalancerIp')))]",
"topologySettings": {
"dataNodesAreMasterEligible": "[parameters('dataNodesAreMasterEligible')]",
Expand Down

0 comments on commit e3322ad

Please sign in to comment.