diff --git a/src/sunstone/public/app/opennebula/vm.js b/src/sunstone/public/app/opennebula/vm.js
index 32bef39465..77098b3d62 100644
--- a/src/sunstone/public/app/opennebula/vm.js
+++ b/src/sunstone/public/app/opennebula/vm.js
@@ -789,7 +789,7 @@ define(function(require) {
}
// Return the IP or several IPs of a VM
- function ipsStr(element, divider, groupStrFuntion = groupByIpsStr) {
+ function ipsStr(element, divider, groupStrFunction = groupByIpsStr) {
var divider = divider || "
";
var nics = getNICs(element);
var ips = [];
@@ -808,6 +808,7 @@ define(function(require) {
}
});
}
+
// infoextended: alias will be group by nic
return Config.isExtendedVmInfo
? groupStrFuntion(element, nics)
@@ -816,11 +817,22 @@ define(function(require) {
if (nic["IP"]) {
return nic["IP"];
}
+ else{
+ var ipv6 = ""
+ if (nic["IP6_ULA"]){
+ ipv6 += nic["IP6_ULA"];
+ }
+ if (nic["IP6_GLOBAL"]){
+ ipv6 = (ipv6 == "") ? "" : ipv6 + "
";
+ ipv6 += nic["IP6_GLOBAL"];
+ }
+ return ipv6;
+ }
}).join(divider)
: "--";
};
- // Return a dropdown with all the
+ // Return a dropdown with all the
function ipsDropdown(element, divider) {
var ipsStr = this.ipsStr(element,divider,groupByIpsDropdown);
var ips = ipsStr.split('
');
@@ -828,18 +840,18 @@ define(function(require) {
// If its generated by groupByIpsDropdown
if (~ipsStr.indexOf("li")){
- ips = []
+ ips = []
$.each($.parseHTML(ipsStr), function( index ) {
ips.push($( this ).text());
});
ipsStr = "