luci-mod-status: routes.js: add route protocol 4596/head
authorMikael Magnusson <mikma@users.sourceforge.net>
Sun, 15 Nov 2020 19:36:29 +0000 (20:36 +0100)
committerMikael Magnusson <mikma@users.sourceforge.net>
Sun, 15 Nov 2020 19:56:30 +0000 (20:56 +0100)
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 <mikma@users.sourceforge.net>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js

index 5da5d403b162459040cea7a3a6f011416d6d148d..fa2315fb5500026d453cab7c9686a1ee04fe4d8c 100644 (file)
@@ -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') ]),
                        ])
                ]);