Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@

// Inject CSS
const head = document.getElementsByTagName('head')[0];
const css = E('link', { 'href':
L.resource('lldpd/lldpd.css')
+ '?v=#PKG_VERSION', 'rel': 'stylesheet' });
const css = E('link', { 'href': L.resource('lldpd/lldpd.css'), 'rel': 'stylesheet' });

head.appendChild(css);
},
Expand All @@ -72,7 +70,7 @@
return Promise.all([
network.getDevices(),
callInitList('lldpd'),
lldpd.init(),

Check warning on line 73 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
uci.load('lldpd'),
]);
},
Expand Down Expand Up @@ -436,7 +434,7 @@

// Management addresses of this system
// This value: lldpd.init handles as a single value, and needs a CSV for lldpd.conf: 'configure system ip management pattern'
o = s.taboption(tab, lldpd.CBIMultiIOSelect, 'lldp_mgmt_ip',

Check warning on line 437 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
_('System management IO'),
_('Defaults to the first IPv4 and IPv6. ' +
'If an exact IP address is provided, it is used ' +
Expand Down Expand Up @@ -524,7 +522,7 @@

// Interfaces to listen on
// This value: lldpd.init handles as a list value, and produces a CSV for lldpd.conf: 'configure system interface pattern'
o = s.taboption(tab, lldpd.CBIMultiIOSelect, 'interface',

Check warning on line 525 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
_('Network IO'),
_('Specify which interface (not) to listen upon and send LLDPDU from. ' +
'Absent any value, LLDPd uses all available physical interfaces.'));
Expand All @@ -540,7 +538,7 @@

// ChassisID interfaces
// This value: lldpd.init handles as a list value, and produces a CSV for the -C param
o = s.taboption(tab, lldpd.CBIMultiIOSelect, 'cid_interface',

Check warning on line 541 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
_('Network IO for chassis ID'),
_('Specify which interfaces (not) to use for computing chassis ID. ' +
'Absent any value, all interfaces are considered. ' +
Expand Down Expand Up @@ -654,7 +652,7 @@
o.default = '0';

// Filter neighbors (-H)
o = s.taboption(tab, lldpd.cbiFilterSelect, 'filter',

Check warning on line 655 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
_('Specify the behaviour when detecting multiple neighbors'),
_('The default filter is 15. Refer to &quot;FILTERING NEIGHBORS&quot;.') + '<br />' +
usage);
Expand Down Expand Up @@ -854,7 +852,7 @@
ss.addremove = true;
ss.rowcolors = true;
ss.addbtntitle = _('Add Custom TLV', 'lldpd Custom TLV');
oo = ss.option(lldpd.CBIMultiIOSelect, 'ports',

Check warning on line 855 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
_('Network Interface(s)'));
oo.optional = true;
net_devices.forEach(nd => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@

// Inject CSS
const head = document.getElementsByTagName('head')[0];
const css = E('link', { 'href':
L.resource('lldpd/lldpd.css')
+ '?v=#PKG_VERSION', 'rel': 'stylesheet' });
const css = E('link', { 'href': L.resource('lldpd/lldpd.css'), 'rel': 'stylesheet' });

head.appendChild(css);
},
Expand All @@ -78,7 +76,7 @@
load() {
return Promise.all([
L.resolveDefault(callLLDPStatus(), {}),
lldpd.init(),

Check warning on line 79 in applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js

View workflow job for this annotation

GitHub Actions / eslint

'lldpd' is not defined
]);
},

Expand Down