From 4799fcead6336fa158b79317f7c7f92180d98f9d Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 15 Nov 2020 20:36:29 +0100 Subject: luci-mod-status: routes.js: add route protocol Add protocol column to the active routes tables. The route protocol is for example helpful when using a dynamic routing daemon, such as bird or babel. Signed-off-by: Mikael Magnusson --- .../htdocs/luci-static/resources/view/status/routes.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js index 5da5d403b..fa2315fb5 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js @@ -135,7 +135,8 @@ return view.extend({ dest, (v6 ? flags.from : flags.via) || '-', String(flags.metric || 0), - flags.table || 'main' + flags.table || 'main', + flags.proto, ]); } @@ -163,7 +164,8 @@ return view.extend({ E('div', { 'class': 'th' }, [ _('Target') ]), E('div', { 'class': 'th' }, [ _('IPv4-Gateway') ]), E('div', { 'class': 'th' }, [ _('Metric') ]), - E('div', { 'class': 'th' }, [ _('Table') ]) + E('div', { 'class': 'th' }, [ _('Table') ]), + E('div', { 'class': 'th' }, [ _('Protocol') ]), ]) ]); @@ -181,7 +183,8 @@ return view.extend({ E('div', { 'class': 'th' }, [ _('Target') ]), E('div', { 'class': 'th' }, [ _('Source') ]), E('div', { 'class': 'th' }, [ _('Metric') ]), - E('div', { 'class': 'th' }, [ _('Table') ]) + E('div', { 'class': 'th' }, [ _('Table') ]), + E('div', { 'class': 'th' }, [ _('Protocol') ]), ]) ]); -- cgit v1.2.3