@@ -3034,6 +3034,7 @@ func Test_Ubuntu2404_SecondaryNIC(t *testing.T) {
30343034 BootstrapConfigMutator : func (_ * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
30353035 // Embed scripts in customData instead of using VHD scripts.
30363036 nbc .EnableScriptlessCSECmd = false
3037+ nbc .StandardSecondaryNICCount = 1
30373038 },
30383039 VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {
30393040 addSecondaryNIC (vmss )
@@ -3058,6 +3059,7 @@ func Test_AzureLinuxV3_SecondaryNIC(t *testing.T) {
30583059 SkipScriptlessNBC : true ,
30593060 BootstrapConfigMutator : func (_ * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
30603061 nbc .EnableScriptlessCSECmd = false
3062+ nbc .StandardSecondaryNICCount = 1
30613063 },
30623064 VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {
30633065 addSecondaryNIC (vmss )
@@ -3082,6 +3084,7 @@ func Test_Ubuntu2204_SecondaryNIC(t *testing.T) {
30823084 SkipScriptlessNBC : true ,
30833085 BootstrapConfigMutator : func (_ * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
30843086 nbc .EnableScriptlessCSECmd = false
3087+ nbc .StandardSecondaryNICCount = 1
30853088 },
30863089 VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {
30873090 addSecondaryNIC (vmss )
@@ -3106,6 +3109,7 @@ func Test_ACL_SecondaryNIC(t *testing.T) {
31063109 SkipScriptlessNBC : true ,
31073110 BootstrapConfigMutator : func (_ * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
31083111 nbc .EnableScriptlessCSECmd = false
3112+ nbc .StandardSecondaryNICCount = 1
31093113 },
31103114 VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {
31113115 vmss .Properties = addTrustedLaunchToVMSS (vmss .Properties )
@@ -3131,6 +3135,7 @@ func Test_Ubuntu2404_SecondaryNIC_DualStack(t *testing.T) {
31313135 SkipScriptlessNBC : true ,
31323136 BootstrapConfigMutator : func (c * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
31333137 nbc .EnableScriptlessCSECmd = false
3138+ nbc .StandardSecondaryNICCount = 1
31343139 if nbc .ContainerService .Properties .FeatureFlags == nil {
31353140 nbc .ContainerService .Properties .FeatureFlags = & datamodel.FeatureFlags {}
31363141 }
@@ -3168,6 +3173,7 @@ func Test_Ubuntu2204_SecondaryNIC_DualStack(t *testing.T) {
31683173 SkipScriptlessNBC : true ,
31693174 BootstrapConfigMutator : func (c * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
31703175 nbc .EnableScriptlessCSECmd = false
3176+ nbc .StandardSecondaryNICCount = 1
31713177 if nbc .ContainerService .Properties .FeatureFlags == nil {
31723178 nbc .ContainerService .Properties .FeatureFlags = & datamodel.FeatureFlags {}
31733179 }
@@ -3205,6 +3211,7 @@ func Test_AzureLinuxV3_SecondaryNIC_DualStack(t *testing.T) {
32053211 SkipScriptlessNBC : true ,
32063212 BootstrapConfigMutator : func (c * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
32073213 nbc .EnableScriptlessCSECmd = false
3214+ nbc .StandardSecondaryNICCount = 1
32083215 if nbc .ContainerService .Properties .FeatureFlags == nil {
32093216 nbc .ContainerService .Properties .FeatureFlags = & datamodel.FeatureFlags {}
32103217 }
@@ -3241,6 +3248,7 @@ func Test_ACL_SecondaryNIC_DualStack(t *testing.T) {
32413248 SkipScriptlessNBC : true ,
32423249 BootstrapConfigMutator : func (c * Cluster , nbc * datamodel.NodeBootstrappingConfiguration ) {
32433250 nbc .EnableScriptlessCSECmd = false
3251+ nbc .StandardSecondaryNICCount = 1
32443252 if nbc .ContainerService .Properties .FeatureFlags == nil {
32453253 nbc .ContainerService .Properties .FeatureFlags = & datamodel.FeatureFlags {}
32463254 }
0 commit comments