@@ -222,13 +222,13 @@ export default {
222222 this .$emit (' stepError' , step, this .stepData )
223223 }
224224 },
225- trafficLabelParam (trafficTypeID , physicalNetworkID ) {
225+ trafficLabelParam (trafficTypeID , physicalNetworkIndex ) {
226226 const hypervisor = this .prefillContent .hypervisor .value
227- physicalNetworkID = this .isAdvancedZone ? physicalNetworkID : 0
227+ physicalNetworkIndex = this .isAdvancedZone ? physicalNetworkIndex : 0
228228 let physicalNetwork = []
229229 let trafficConfig = null
230230 if (this .prefillContent .physicalNetworks ) {
231- physicalNetwork = this .prefillContent .physicalNetworks [0 ].traffics .filter (traffic => traffic .type === trafficTypeID)
231+ physicalNetwork = this .prefillContent .physicalNetworks [physicalNetworkIndex ].traffics .filter (traffic => traffic .type === trafficTypeID)
232232 trafficConfig = physicalNetwork .length > 0 ? physicalNetwork[0 ] : null
233233 }
234234 let trafficLabel
@@ -476,13 +476,13 @@ export default {
476476 try {
477477 if (! this .stepData .stepMove .includes (' addTrafficType' + index + key)) {
478478 if (traffic .type === ' public' ) {
479- await this .addTrafficType (' Public' )
479+ await this .addTrafficType (' Public' , index )
480480 } else if (traffic .type === ' management' ) {
481- await this .addTrafficType (' Management' )
481+ await this .addTrafficType (' Management' , index )
482482 } else if (traffic .type === ' guest' ) {
483- await this .addTrafficType (' Guest' )
483+ await this .addTrafficType (' Guest' , index )
484484 } else if (traffic .type === ' storage' ) {
485- await this .addTrafficType (' Storage' )
485+ await this .addTrafficType (' Storage' , index )
486486 }
487487 this .stepData .stepMove .push (' addTrafficType' + index + key)
488488 }
@@ -1605,8 +1605,8 @@ export default {
16051605 })
16061606 })
16071607 },
1608- addTrafficType (trafficType ) {
1609- const getTrafficParams = this .trafficLabelParam (trafficType .toLowerCase ())
1608+ addTrafficType (trafficType , index ) {
1609+ const getTrafficParams = this .trafficLabelParam (trafficType .toLowerCase (), index )
16101610 let params = {}
16111611
16121612 params .trafficType = trafficType
0 commit comments