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:
parent
43d0796dc2
commit
ad7d57b9f3
@ -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 += " " + this.IP;
|
||||
}
|
||||
|
||||
if(String(this.EXTERNAL_IP).toLowerCase() !== 'yes') {
|
||||
if (
|
||||
this.EXTERNAL_IP !== undefined &&
|
||||
!['yes', 'no'].includes(String(this.EXTERNAL_IP).toLowerCase())
|
||||
) {
|
||||
new_div += " " + this.EXTERNAL_IP;
|
||||
}
|
||||
|
||||
if(this.IP6 !== undefined) {
|
||||
if (this.IP6 !== undefined) {
|
||||
new_div += " " + this.IP6;
|
||||
}
|
||||
|
||||
new_div += " " + this.MAC;
|
||||
|
||||
if(this.IP6_ULA !== undefined) {
|
||||
if (this.IP6_ULA !== undefined) {
|
||||
new_div += " <b>ULA</b> " + this.IP6_ULA;
|
||||
}
|
||||
|
||||
if(this.IP6_GLOBAL !== undefined) {
|
||||
if (this.IP6_GLOBAL !== undefined) {
|
||||
new_div += " <b>Global</b> " + this.IP6_GLOBAL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user