Skip to content

Commit 896b43b

Browse files
committed
Don't call sendValuesTimed from getDefaultNetwork as it's causing an infinte loop
1 parent 6943136 commit 896b43b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/src/views/compute/wizard/MultiNetworkSelection.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,19 +272,22 @@ export default {
272272
}
273273
this.sendValuesTimed()
274274
},
275-
handleNetworkChange (nic, networkId) {
275+
setNetworkState (nic, networkId) {
276276
if (this.hypervisor === 'KVM') {
277277
this.setIpAddressEnabled(nic, _.find(this.networks, (option) => option.id === networkId))
278278
} else {
279279
this.setIpAddressEnabled(nic, _.find(this.validNetworks[nic.id], (option) => option.id === networkId))
280280
}
281+
},
282+
handleNetworkChange (nic, networkId) {
283+
this.setNetworkState(nic, networkId)
281284
this.sendValuesTimed()
282285
},
283286
getDefaultNetwork (record) {
284287
if (record.vlanid && record.vlanid !== -1) {
285288
const matched = this.validNetworks[record.id].filter(x => Number(x.vlan) === record.vlanid)
286289
if (matched.length > 0) {
287-
this.handleNetworkChange(record, matched[0].id)
290+
this.setNetworkState(record, matched[0].id)
288291
return matched[0].id
289292
}
290293
}

0 commit comments

Comments
 (0)