1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #~: Fix minor (#1063)

This commit is contained in:
Sergio Betanzos 2021-04-05 13:25:11 +02:00 committed by GitHub
parent 43d0796dc2
commit ad7d57b9f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,25 +441,28 @@ define(function(require) {
var new_div = "<div id=alias_" + this.NIC_ID + " style=\"margin-left: 40px; margin-bottom: 5px\">" +
"<b>" + "- Alias-" + this.ALIAS_ID + ":" + "</b>";
if(this.IP !== undefined) {
if (this.IP !== undefined) {
new_div += "&nbsp;&nbsp;&nbsp;" + this.IP;
}
if(String(this.EXTERNAL_IP).toLowerCase() !== 'yes') {
if (
this.EXTERNAL_IP !== undefined &&
!['yes', 'no'].includes(String(this.EXTERNAL_IP).toLowerCase())
) {
new_div += "&nbsp;&nbsp;&nbsp;" + this.EXTERNAL_IP;
}
if(this.IP6 !== undefined) {
if (this.IP6 !== undefined) {
new_div += "&nbsp;&nbsp;&nbsp;" + this.IP6;
}
new_div += "&nbsp;&nbsp;&nbsp;" + this.MAC;
if(this.IP6_ULA !== undefined) {
if (this.IP6_ULA !== undefined) {
new_div += "&nbsp;&nbsp;&nbsp;<b>ULA</b>&nbsp;" + this.IP6_ULA;
}
if(this.IP6_GLOBAL !== undefined) {
if (this.IP6_GLOBAL !== undefined) {
new_div += "&nbsp;&nbsp;&nbsp;<b>Global</b>&nbsp;" + this.IP6_GLOBAL;
}