Merge branch '4.20'

This commit is contained in:
Suresh Kumar Anaparti 2025-08-11 20:44:26 +05:30
commit 96728c5a17
No known key found for this signature in database
GPG Key ID: D7CEAE3A9E71D0AA
1 changed files with 14 additions and 2 deletions

View File

@ -72,7 +72,7 @@
:placeholder="apiParams.cidr.description"/>
</a-form-item>
<a-form-item
v-if="selectedVpcOffering && selectedVpcOffering.networkmode === 'ROUTED'"
v-if="selectedVpcOfferingHavingRoutedNetworkMode"
ref="cidrsize"
name="cidrsize">
<template #label>
@ -276,6 +276,9 @@ export default {
return sourcenatService && sourcenatService.length === 1
}
return false
},
selectedVpcOfferingHavingRoutedNetworkMode () {
return this.selectedVpcOffering && this.selectedVpcOffering.networkmode === 'ROUTED'
}
},
methods: {
@ -397,6 +400,7 @@ export default {
handleVpcOfferingChange (value) {
this.selectedVpcOffering = {}
if (!value) {
this.updateCidrRule()
return
}
for (var offering of this.vpcOfferings) {
@ -406,9 +410,17 @@ export default {
if (this.isASNumberRequired()) {
this.fetchZoneASNumbers()
}
return
break
}
}
this.updateCidrRule()
},
updateCidrRule () {
if (!this.selectedVpcOfferingHavingRoutedNetworkMode) {
this.rules.cidr = [{ required: true, message: this.$t('message.error.required.input') }]
} else {
delete this.rules.cidr
}
},
handleASNumberChange (selectedIndex) {
this.selectedAsNumber = this.asNumbersZone[selectedIndex].asnumber