network: Dont display "isolated network" section for SG enabled zone (#553)

* Dont allow creating isolated network in zone with sg enabled

Allow creating isolated networks only in zones with sg
disabled.

* allow creating l2 in all zones

Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rakesh 2020-07-28 14:02:38 +02:00 committed by Rohit Yadav
parent 79078ac472
commit 5902b24231
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ export default {
api('listZones', params).then(json => {
for (const i in json.listzonesresponse.zone) {
const zone = json.listzonesresponse.zone[i]
if (zone.networktype === 'Advanced' && zone.securitygroupsenabled !== true) {
if (zone.networktype === 'Advanced') {
this.zones.push(zone)
}
}

View File

@ -99,7 +99,7 @@ export default {
return true
}
}
return true
return false
},
handleRefresh () {
this.fetchData()