mirror of https://github.com/apache/cloudstack.git
UI: fix wrong vpcid when create network in VPC (#7707)
This commit is contained in:
parent
8e171785d1
commit
d66f83ba2f
|
|
@ -596,7 +596,7 @@ export default {
|
|||
displayText: values.displaytext,
|
||||
networkOfferingId: this.selectedNetworkOffering.id
|
||||
}
|
||||
var usefulFields = ['gateway', 'netmask', 'startip', 'endip', 'dns1', 'dns2', 'ip6dns1', 'ip6dns2', 'externalid', 'vpcid', 'vlan', 'networkdomain']
|
||||
var usefulFields = ['gateway', 'netmask', 'startip', 'endip', 'dns1', 'dns2', 'ip6dns1', 'ip6dns2', 'externalid', 'vlan', 'networkdomain']
|
||||
for (var field of usefulFields) {
|
||||
if (this.isValidTextValueForKey(values, field)) {
|
||||
params[field] = values[field]
|
||||
|
|
@ -608,6 +608,9 @@ export default {
|
|||
if (this.isValidTextValueForKey(values, 'privatemtu')) {
|
||||
params.privatemtu = values.privatemtu
|
||||
}
|
||||
if ('vpcid' in values) {
|
||||
params.vpcid = this.selectedVpc.id
|
||||
}
|
||||
if ('domainid' in values && values.domainid > 0) {
|
||||
params.domainid = this.selectedDomain.id
|
||||
if (this.isValidTextValueForKey(values, 'account') && this.selectedAccount.id !== '-1') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue