Skip to content

Commit 1a5fd29

Browse files
committed
update nested_node_nics to force 10.0.0.0 for nic0 on each vm
1 parent d365c10 commit 1a5fd29

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lisa/sut_orchestrator/azure/autogen_arm_template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.40.2.10011",
9-
"templateHash": "16491672364169834990"
9+
"templateHash": "4557474367850822761"
1010
}
1111
},
1212
"functions": [
@@ -933,7 +933,7 @@
933933
"_generator": {
934934
"name": "bicep",
935935
"version": "0.40.2.10011",
936-
"templateHash": "1909517540330820286"
936+
"templateHash": "18100026266609217689"
937937
}
938938
},
939939
"functions": [
@@ -971,7 +971,7 @@
971971
],
972972
"output": {
973973
"type": "string",
974-
"value": "[format('10.{0}.{1}.0', parameters('resource_group_index'), parameters('nic_index'))]"
974+
"value": "[if(equals(parameters('nic_index'), 0), '10.0.0.0', format('10.{0}.{1}.0', parameters('resource_group_index'), parameters('nic_index')))]"
975975
}
976976
}
977977
}

lisa/sut_orchestrator/azure/nested_nodes_nics.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func getPublicIpAddress(vmName string, publicIpName string) object => {
1515
var publicIpAddress = getPublicIpAddress(vmName, '${vmName}-public-ip')
1616
var publicIpAddressV6 = getPublicIpAddress(vmName, '${vmName}-public-ipv6')
1717

18-
func getSubnetName(resource_group_index int, nic_index int) string => '10.${resource_group_index}.${nic_index}.0'
18+
func getSubnetName(resource_group_index int, nic_index int) string => nic_index == 0 ? '10.0.0.0' : '10.${resource_group_index}.${nic_index}.0'
1919

2020
resource vm_nics 'Microsoft.Network/networkInterfaces@2023-06-01' = [for i in range(0, nic_count): {
2121
name: '${vmName}-nic-${i}'

0 commit comments

Comments
 (0)