From 227224962c06017dedc7a1f5ebef03c7e820ee17 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@ess.eu> Date: Tue, 28 Jan 2020 13:41:39 +0100 Subject: [PATCH] Add MAC address column to hosts table JIRA INFRA-1669 #action In Progress --- app/static/js/hosts.js | 1 + app/templates/network/hosts.html | 1 + 2 files changed, 2 insertions(+) diff --git a/app/static/js/hosts.js b/app/static/js/hosts.js index 3f9e560..82ea39f 100644 --- a/app/static/js/hosts.js +++ b/app/static/js/hosts.js @@ -167,6 +167,7 @@ $(document).ready(function() { { data: "device_type" }, { data: "description", orderable: false }, { data: "interfaces.0.ip", defaultContent: "", orderable: false }, + { data: "interfaces.0.mac", defaultContent: "", orderable: false }, { data: "interfaces.0.network", render: function(data, type, row) { diff --git a/app/templates/network/hosts.html b/app/templates/network/hosts.html index 8965eea..42690a5 100644 --- a/app/templates/network/hosts.html +++ b/app/templates/network/hosts.html @@ -25,6 +25,7 @@ <th>Type</th> <th>Description</th> <th>IP</th> + <th>MAC</th> <th>Network</th> </tr> </thead> -- GitLab