()
| 4835 | |
| 4836 | function 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 | |
| 4845 | function exportMtrCsv() { |
| 4846 | const d = _ndLastMtr; |
| 4847 | if (!d) { addConsoleMessage('Run MTR first', 'warning'); return; } |
no test coverage detected