diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/network.js b/src/sunstone/public/app/tabs/vms-tab/panels/network.js
index efd4b39491..82230d8236 100644
--- a/src/sunstone/public/app/tabs/vms-tab/panels/network.js
+++ b/src/sunstone/public/app/tabs/vms-tab/panels/network.js
@@ -441,25 +441,28 @@ define(function(require) {
var new_div = "
" +
"" + "- Alias-" + this.ALIAS_ID + ":" + "";
- 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 += " ULA " + this.IP6_ULA;
}
- if(this.IP6_GLOBAL !== undefined) {
+ if (this.IP6_GLOBAL !== undefined) {
new_div += " Global " + this.IP6_GLOBAL;
}