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 <mikma@users.sourceforge.net>
This commit is contained in:
Mikael Magnusson 2020-11-15 20:36:29 +01:00
parent 24a240d233
commit 4799fcead6

View file

@ -135,7 +135,8 @@ return view.extend({
dest, dest,
(v6 ? flags.from : flags.via) || '-', (v6 ? flags.from : flags.via) || '-',
String(flags.metric || 0), 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' }, [ _('Target') ]),
E('div', { 'class': 'th' }, [ _('IPv4-Gateway') ]), E('div', { 'class': 'th' }, [ _('IPv4-Gateway') ]),
E('div', { 'class': 'th' }, [ _('Metric') ]), 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' }, [ _('Target') ]),
E('div', { 'class': 'th' }, [ _('Source') ]), E('div', { 'class': 'th' }, [ _('Source') ]),
E('div', { 'class': 'th' }, [ _('Metric') ]), E('div', { 'class': 'th' }, [ _('Metric') ]),
E('div', { 'class': 'th' }, [ _('Table') ]) E('div', { 'class': 'th' }, [ _('Table') ]),
E('div', { 'class': 'th' }, [ _('Protocol') ]),
]) ])
]); ]);