MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / loadLootData

Function loadLootData

web/scripts/ragnar_modern.js:4837–4844  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4835
4836function exportInterfacesCsv() {
4837 _ndDownloadCsv('interfaces',
4838 ['Name', 'Type', 'Operstate', 'Link detected', 'Speed', 'Duplex', 'Auto-neg',
4839 'IP method', 'IPv4', 'IPv6', 'MAC', 'VLAN ID', 'VLAN proto'],
4840 (_ndLastIfaces || []).map(i => [i.name, i.type, i.operstate, i.link_detected,
4841 i.speed, i.duplex, i.autoneg, i.ip_method, (i.ipv4 || []).join(' '),
4842 (i.ipv6 || []).join(' '), i.mac, i.vlan_id, i.vlan_proto]));
4843}
4844
4845function exportMtrCsv() {
4846 const d = _ndLastMtr;
4847 if (!d) { addConsoleMessage('Run MTR first', 'warning'); return; }

Callers 2

preloadAllTabsFunction · 0.70
loadTabDataFunction · 0.70

Calls 3

errorMethod · 0.80
fetchAPIFunction · 0.70
displayLootTableFunction · 0.70

Tested by

no test coverage detected