()
| 8801 | function runCiscoGuard() { _runGuard('cisco', 'Cisco', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8802 | function runJuniperGuard() { _runGuard('juniper', 'Juniper', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8803 | function runAristaGuard() { _runGuard('arista', 'Arista', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8804 | function runComwareGuard() { _runGuard('comware', 'Comware', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8805 | function runMikroTikGuard() { _runGuard('mikrotik', 'MikroTik', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8806 | function runArubaGuard() { _runGuard('aruba', 'Aruba', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8807 | function runAPCGuard() { _runGuard('apc', 'APC', (typeof event !== 'undefined' && event && event.target) ? event.target : null); } |
| 8808 | // --- Dell Guard daemon control (standalone systemd sensor; enable/disable switch) --- |
| 8809 | function _dellGuardRender(d) { |
| 8810 | if (!d) return '<span class="text-red-400">No status returned.</span>'; |
| 8811 | if (d.success === false && d.error) return '<span class="text-red-400">Error: ' + escapeHtml(d.error) + '</span>'; |
| 8812 | const pills = { |
| 8813 | 'enforcing': ['bg-emerald-950/50 border-emerald-800 text-emerald-300', '● Enforcing'], |
| 8814 | 'learning': ['bg-amber-950/50 border-amber-800 text-amber-300', '◐ Learning baseline'], |
| 8815 | 'installed': ['bg-slate-800 border-slate-700 text-slate-300', '○ Installed · idle'], |
| 8816 | 'not-installed': ['bg-slate-800 border-slate-700 text-slate-400', '○ Not installed'], |
| 8817 | }; |
| 8818 | const p = pills[d.state] || ['bg-slate-800 border-slate-700 text-slate-400', escapeHtml(d.state || 'unknown')]; |
| 8819 | const bits = []; |
| 8820 | if (d.active_interface) bits.push('iface <span class="font-mono">' + escapeHtml(d.active_interface) + '</span>'); |
| 8821 | bits.push('config ' + (d.config_present ? 'present' : '<span class="text-amber-300">missing — LLDP-only attribution</span>')); |
no outgoing calls
no test coverage detected