mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
also show IPv6 ULA and Global if defined. Signed-off-by: Anton Todorov <a.todorov@storpool.com>
This commit is contained in:
parent
21c62e5dc8
commit
2c19a586d0
@ -428,29 +428,29 @@ define(function(require) {
|
||||
var html = "";
|
||||
|
||||
$.each(row.data().NIC_ALIAS, function(index, elem) {
|
||||
var new_div = "<div id=alias_" + this.NIC_ID + " style=\"margin-left: 40px; margin-bottom: 5px\"><b> - Alias-" + this.ALIAS_ID + ":</b>";
|
||||
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) {
|
||||
new_div += " " + this.IP;
|
||||
}
|
||||
if(this.IP6 !== undefined) {
|
||||
new_div += " " + this.IP6;
|
||||
}
|
||||
new_div += " " + this.MAC;
|
||||
if(this.IP6_ULA !== undefined) {
|
||||
new_div += " <b>ULA</b> " + this.IP6_ULA;
|
||||
}
|
||||
if(this.IP6_GLOBAL !== undefined) {
|
||||
new_div += " <b>Global</b> " + this.IP6_GLOBAL;
|
||||
}
|
||||
new_div += " " + this.ACTIONS + "</div>";
|
||||
|
||||
if(!!this.IP) {
|
||||
new_div += " " + this.IP;
|
||||
}
|
||||
if(!!this.IP6) {
|
||||
new_div += " " + this.IP6;
|
||||
}
|
||||
new_div += " " + this.MAC;
|
||||
if(!!this.IP6_ULA) {
|
||||
new_div += " <b>ULA:</b> " + this.IP6_ULA;
|
||||
}
|
||||
if(!!this.IP6_GLOBAL) {
|
||||
new_div += " <b>Global:</b> " + this.IP6_GLOBAL;
|
||||
}
|
||||
new_div += " " + this.ACTIONS + "</div>";
|
||||
html += new_div;
|
||||
|
||||
html += new_div;
|
||||
|
||||
if (Config.isTabActionEnabled("vms-tab", "VM.detachnic")) {
|
||||
context.off("click", ".detachnic");
|
||||
context.on("click", ".detachnic", {element_id: that.element.ID}, detach_alias);
|
||||
}
|
||||
if (Config.isTabActionEnabled("vms-tab", "VM.detachnic")) {
|
||||
context.off("click", ".detachnic");
|
||||
context.on("click", ".detachnic", {element_id: that.element.ID}, detach_alias);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
html = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user