The host's LLDP never sees the BMC's own port. A port's cable now comes from LLDP first (what is really there), then from a cable recorded in NetBox on the machine's device (read with the layout, traced through patch panels to the far interface via connected_endpoints), then from one entered by hand (POST/DELETE /api/v1/cables, the pencil in the cabling list). A NetBox interface marked management-only or named like a BMC (iDRAC, iLO, XCC, IMM, IPMI, BMC, OOB, mgmt) is the machine's "bmc" port, so BMCs get their cable to the out-of-band switch. When NetBox records another switch port than LLDP sees, the port says what NetBox says. A switch whose NetBox role names out-of-band or management, or that only BMCs are cabled to, is marked OOB. In 3D the BMC cable leaves the BMC port on the back (thinner); the side panel lists every machine's ports with their source, the BMC always, and switches carry an OOB tag. Estimated switch places now go around the units placed switches take. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
2.7 KiB
HTML
61 lines
2.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Rollcall</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="shell">
|
|
<nav class="side">
|
|
<div class="brand">Rollcall<span class="muted">bare-metal fleet</span></div>
|
|
<a href="#/overview" data-nav="overview">Overview</a>
|
|
<a href="#/machines" data-nav="machines">Machines <span class="count" id="n-machines"></span></a>
|
|
<a href="#/sites" data-nav="sites">Sites</a>
|
|
<a href="#/racks" data-nav="racks">Racks <span class="count" id="n-racks"></span></a>
|
|
<a href="#/network" data-nav="network">Network <span class="count" id="n-net"></span></a>
|
|
<a href="#/jobs" data-nav="jobs">Jobs <span class="count" id="n-jobs"></span></a>
|
|
<a href="#/tags" data-nav="tags">Tags</a>
|
|
<a href="#/profiles" data-nav="profiles">Profiles</a>
|
|
<a href="#/images" data-nav="images">OS images</a>
|
|
<a id="nav-netbox" href="#" target="_blank" rel="noopener" style="display:none" title="NetBox, through Rollcall: its own login">NetBox ↗</a>
|
|
<div class="side-foot">
|
|
<span id="status" class="muted"></span>
|
|
<button id="logout" class="btn ghost" title="forget the admin token">Token</button>
|
|
</div>
|
|
</nav>
|
|
|
|
<main id="main"></main>
|
|
</div>
|
|
|
|
<dialog id="login">
|
|
<form method="dialog">
|
|
<h2>Admin token</h2>
|
|
<p class="muted">The <code>admin_token</code> from the server's <code>config.json</code>. Stored only in this browser. Or use an admin client certificate (<code>rollcall admin-cert request NAME</code>) and the browser signs you in by itself.</p>
|
|
<p id="http-warn" class="warn" hidden>This page came over plain HTTP: the token crosses the network unencrypted. Use <a id="https-link" href="#">HTTPS</a> after trusting the installation's <a href="/ca.pem">CA certificate</a> <span id="ca-fp" class="mono muted"></span>.</p>
|
|
<input id="token" type="password" autocomplete="off" placeholder="token" required>
|
|
<menu><button class="btn primary" value="ok">Sign in</button></menu>
|
|
</form>
|
|
</dialog>
|
|
|
|
<!-- generic action dialog: filled by JS -->
|
|
<dialog id="dlg">
|
|
<form method="dialog" id="dlg-form">
|
|
<h2 id="dlg-title"></h2>
|
|
<div id="dlg-body" class="kv form"></div>
|
|
<p id="dlg-note" class="muted"></p>
|
|
<menu><button class="btn ghost" value="cancel" type="button" id="dlg-cancel">Cancel</button><button class="btn primary" value="ok" id="dlg-ok">OK</button></menu>
|
|
</form>
|
|
</dialog>
|
|
|
|
<div id="toast" hidden></div>
|
|
<script src="topo.js"></script>
|
|
<script src="netview.js"></script>
|
|
<script src="sites.js"></script>
|
|
<script src="fronts.js"></script>
|
|
<script src="room3d.js"></script>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|