Include interface information on circuit page.

This commit is contained in:
Herbert Wolverson
2023-08-11 18:42:30 +00:00
parent c2d2795467
commit 33e6e32473
3 changed files with 18 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -74,15 +74,24 @@ export class CircuitPage implements Page {
html += "<h5 class='card-title'><i class='fa fa-wifi'></i> " + name + "</h5>";
console.log(d);
html += "<table class='table table-striped'>";
for (let j=0; j<d.interfaces.length; j++) {
html += "<tr>";
let iface = d.interfaces[j];
html += iface.name;
html += " (" + iface.mac + ")";
html += iface.ip_list;
html += iface.status;
html += "<br />";
html += "<td>" + iface.name + "</td>";
html += "<td>" + iface.mac + "</td>";
html += "<td>" + iface.ip_list + "</td>";
html += "<td>" + iface.status + "</td>";
html += "<td>" + iface.speed + "</td>";
html += "</tr>";
}
html += "</table>";
html += "<div class='card-body' id='extdev_" + d.device_id + "' style='height: 250px'></div>";
html += "<div class='card-body' id='extdev_cap_" + d.device_id + "' style='height: 250px'></div>";
request_ext_snr_graph(window.graphPeriod, d.device_id);
request_ext_capacity_graph(window.graphPeriod, d.device_id);
/*
html += "</div>";
html += "</div>";
html += "</div>";
@@ -107,7 +116,7 @@ export class CircuitPage implements Page {
request_ext_capacity_graph(window.graphPeriod, d.device_id);
// End row
html += "</div>";
html += "</div>";*/
}
div.outerHTML = html;