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

Function updateDashboardInterfaceSwitchActiveState

web/scripts/ragnar_modern.js:8863–8878  ·  view source on GitHub ↗
(activeInterface)

Source from the content-addressed store, hash-verified

8861 const o = document.createElement('option');
8862 o.value = i.name;
8863 const tag = i.type === 'wifi' ? ' (WiFi)' : i.type === 'ethernet' ? ' (LAN)' : (i.type ? ' (' + i.type + ')' : '');
8864 o.textContent = i.name + tag;
8865 sel.appendChild(o);
8866 });
8867 sel.dataset.filled = '1';
8868 }).catch(() => {});
8869}
8870async function runFhrpWatch() {
8871 const out = document.getElementById('fhrp-results');
8872 if (!out) return;
8873 const btn = (typeof event !== 'undefined' && event && event.target) ? event.target : null;
8874 const ifaceSel = document.getElementById('fhrp-iface');
8875 const iface = ifaceSel && ifaceSel.value ? ifaceSel.value : '';
8876 const secsEl = document.getElementById('fhrp-secs');
8877 const secs = secsEl && secsEl.value ? secsEl.value : '15';
8878 _ndBusy(btn, true, 'Listening…');
8879 out.classList.remove('hidden');
8880 out.innerHTML = '<p class="text-sm text-gray-400">Passively capturing FHRP hellos on the segment…</p>';
8881 try {

Callers 2

setSelectedWifiInterfaceFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected