Skip to content

Commit

Permalink
VNF UI: display different message if no credentials found for VNF app…
Browse files Browse the repository at this point in the history
…liance
  • Loading branch information
weizhouapache committed Nov 14, 2023
1 parent ebdd67d commit 4fdb6bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2223,14 +2223,14 @@
"label.vnf.cidr.list": "CIDR from which access to the VNF appliance’s Management interface should be allowed from",
"label.vnf.cidr.list.tooltip": "the CIDR list to forward traffic from to the VNF management interface. Multiple entries must be separated by a single comma character (,). The default value is 0.0.0.0/0.",
"label.vnf.configure.management": "Configure Firewall and Port Forwarding rules for VNF's management interfaces",
"label.vnf.configure.management.tooltip": "True by default, security group or network rules (source nat and firewall rules) will be configured for VNF management interfaces. False otherwise.",
"label.vnf.configure.management.tooltip": "True by default, security group or network rules (source nat and firewall rules) will be configured for VNF management interfaces. False otherwise. Learn what rules are configured at http://docs.cloudstack.apache.org/en/latest/adminguide/networking/vnf_templates_appliances.html#deploying-vnf-appliances",
"label.vnf.detail.add": "Add VNF detail",
"label.vnf.detail.remove": "Remove VNF detail",
"label.vnf.details": "VNF Details",
"label.vnf.nic.add": "Add VNF nic",
"label.vnf.nic.delete": "Delete VNF nic",
"label.vnf.nic.description": "Description of VNF nic",
"label.vnf.nic.deviceid": "Device ID of VNF nic. It starts with 0",
"label.vnf.nic.deviceid": "Device ID of VNF nic. It starts with 0. The NIC with deviceid as 0 for VNF appliance will be the default NIC.",
"label.vnf.nic.edit": "Edit VNF nic",
"label.vnf.nic.management": "Management NIC",
"label.vnf.nic.management.description": "True if the VNF nic is a management interface. False otherwise",
Expand Down Expand Up @@ -3201,7 +3201,7 @@
"message.vm.state.stopped": "Instance is stopped.",
"message.vm.state.stopping": "Instance is being stopped.",
"message.vm.state.unknown": "Instance state is unknown.",
"message.vnf.appliance.networks": "Please select Networks for the new VNF appliance.",
"message.vnf.appliance.networks": "Please select the networks for the new VNF appliance.",
"message.vnf.credentials.change": "Please change the password(s) of the VNF appliance immediately.",
"message.vnf.credentials.default": "The default credentials(s) of the VNF appliance",
"message.vnf.credentials.in.template.vnf.details": "Please find the default credentials for this VNF in the details of the VNF template.",
Expand All @@ -3211,6 +3211,7 @@
"message.vnf.error.no.network.for.required.deviceid": "Please select a Network for required NIC of the new VNF appliance.",
"message.vnf.nic.move.up.fail": "Failed to move up this NIC",
"message.vnf.nic.move.down.fail": "Failed to move down this NIC",
"message.vnf.no.credentials": "No credentials found for the VNF appliance.",
"message.vnf.select.networks": "Please select the relevant network for each VNF NIC.",
"message.volume.state.allocated": "The volume is allocated but has not been created yet.",
"message.volume.state.attaching": "The volume is attaching to a volume from Ready state.",
Expand Down
6 changes: 5 additions & 1 deletion ui/src/views/compute/DeployVnfAppliance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,11 @@ export default {
if (vm.password) {
credentials.push('New password : ' + vm.password)
}
credentials.push(this.$t('message.vnf.credentials.change'))
if (credentials.size > 0) {
credentials.push(this.$t('message.vnf.credentials.change'))
} else {
credentials.push(this.$t('message.vnf.no.credentials'))
}
this.$notification.success({
message: `${this.$t('message.vnf.credentials.default')} ` + name,
description: (<span v-html={credentials.join('<br>')}></span>),
Expand Down

0 comments on commit 4fdb6bd

Please sign in to comment.