Skip to content

Commit

Permalink
change name of nic and ipconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
CecileRobertMichon committed Feb 18, 2023
1 parent 5802aec commit 1e3b186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/services/scalesets/scalesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ func (s *Service) getVirtualMachineScaleSetNetworkConfiguration(vmssSpec azure.S
for i, n := range vmssSpec.NetworkInterfaces {
nicConfig := compute.VirtualMachineScaleSetNetworkConfiguration{}
nicConfig.VirtualMachineScaleSetNetworkConfigurationProperties = &compute.VirtualMachineScaleSetNetworkConfigurationProperties{}
nicConfig.Name = pointer.String(vmssSpec.Name + "-" + strconv.Itoa(i))
nicConfig.Name = pointer.String(vmssSpec.Name + "-nic-" + strconv.Itoa(i))
if pointer.BoolDeref(n.AcceleratedNetworking, false) {
nicConfig.VirtualMachineScaleSetNetworkConfigurationProperties.EnableAcceleratedNetworking = pointer.Bool(true)
} else {
Expand All @@ -593,7 +593,7 @@ func (s *Service) getVirtualMachineScaleSetNetworkConfiguration(vmssSpec azure.S
ipconfigs := []compute.VirtualMachineScaleSetIPConfiguration{}
for j := 0; j < n.PrivateIPConfigs; j++ {
ipconfig := compute.VirtualMachineScaleSetIPConfiguration{
Name: pointer.String(fmt.Sprintf("private-ipConfig-%v", j)),
Name: pointer.String(fmt.Sprintf("ipConfig" + strconv.Itoa(j))),
VirtualMachineScaleSetIPConfigurationProperties: &compute.VirtualMachineScaleSetIPConfigurationProperties{
PrivateIPAddressVersion: compute.IPVersionIPv4,
Subnet: &compute.APIEntityReference{
Expand Down

0 comments on commit 1e3b186

Please sign in to comment.