File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
ui/src/views/compute/wizard Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments