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:
parent
24a240d233
commit
4799fcead6
1 changed files with 6 additions and 3 deletions
|
@ -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') ]),
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue