From ed293f8a67f260ea937ae8b2b72823e1e39353f2 Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Mon, 8 May 2017 02:11:21 +0200 Subject: [PATCH] add MAC address in dashboard --- src/emuvim/dashboard/css/main.css | 6 +++++- src/emuvim/dashboard/js/main.js | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/emuvim/dashboard/css/main.css b/src/emuvim/dashboard/css/main.css index 5e9162c..6289439 100755 --- a/src/emuvim/dashboard/css/main.css +++ b/src/emuvim/dashboard/css/main.css @@ -36,7 +36,7 @@ body { } .interface_table { - width: 420px; + width: 570px; } @@ -50,4 +50,8 @@ body { .interface_ip { width: 100px; +} + +.interface_mac { + width: 150px; } \ No newline at end of file diff --git a/src/emuvim/dashboard/js/main.js b/src/emuvim/dashboard/js/main.js index c8d65ea..3fdd488 100755 --- a/src/emuvim/dashboard/js/main.js +++ b/src/emuvim/dashboard/js/main.js @@ -83,7 +83,7 @@ function update_table_container(data) build_network_table(item[1].network, item[0]); }); $("#lbl_container_count").text(data.length); - $("#table_network").append('
datacenter portinterfaceip
') + $("#table_network").append('
datacenter portinterfaceipmac
') // update lateness counter LAST_UPDATE_TIMESTAMP_CONTAINER = Date.now(); } @@ -96,8 +96,9 @@ function build_network_table(network_list, id) network_list.forEach(function(interface) { row_str += ''; row_str += '' + interface.dc_portname + ''; - row_str += '' + interface.intf_name + ''; + row_str += '' + interface.intf_name + ''; row_str += '' + interface.ip + ''; + row_str += '' + interface.mac + ''; row_str += ''; }); $("#network_list_" + id).append(row_str) -- 2.25.1