Skip to content

Commit c7bd152

Browse files
committed
UI: fix issues when deploy VNF applicance on network with SG
1 parent 9e86fdf commit c7bd152

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ui/src/config/section/network.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,10 @@ export default {
356356
permission: ['listVnfAppliances'],
357357
resourceType: 'UserVm',
358358
params: () => {
359-
return { details: 'servoff,tmpl,nics', isvnf: true }
359+
return {
360+
details: 'group,nics,secgrp,tmpl,servoff,diskoff,iso,volume,affgrp,backoff',
361+
isvnf: true
362+
}
360363
},
361364
columns: () => {
362365
const fields = ['name', 'state', 'ipaddress']

ui/src/views/compute/DeployVnfAppliance.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ export default {
13051305
for (const deviceId of managementDeviceIds) {
13061306
if (this.vnfNicNetworks && this.vnfNicNetworks[deviceId] &&
13071307
((this.vnfNicNetworks[deviceId].type === 'Isolated' && this.vnfNicNetworks[deviceId].vpcid === undefined) ||
1308-
(this.vnfNicNetworks[deviceId].type === 'Shared' && this.zone.securitygroupsenabled))) {
1308+
(this.vnfNicNetworks[deviceId].type === 'Shared' && this.vnfNicNetworks[deviceId].service.filter(svc => svc.name === 'SecurityGroupProvider')))) {
13091309
return true
13101310
}
13111311
}

ui/src/views/network/VnfAppliancesTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default {
120120
methods: {
121121
fetchData () {
122122
var params = {
123-
details: 'servoff,tmpl,nics',
123+
details: 'group,nics,secgrp,tmpl,servoff,diskoff,iso,volume,affgrp,backoff',
124124
isVnf: true,
125125
listAll: true
126126
}

0 commit comments

Comments
 (0)