From: stevenvanrossem Date: Mon, 8 May 2017 00:11:21 +0000 (+0200) Subject: add MAC address in dashboard X-Git-Tag: v3.1~28^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ed293f8a67f260ea937ae8b2b72823e1e39353f2;p=osm%2Fvim-emu.git add MAC address in dashboard --- 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)