{% extends "ui/_layout.html" %} {% block title %}{{ m.mac }} - bty-web{% endblock %} {% block content %}

{{ m.mac }}

Discovered
{{ m.discovered_at or "-" }}
Last seen
{{ m.last_seen_at or "-" }}{% if m.last_seen_ip %} from {{ m.last_seen_ip }}{% endif %}
Last flashed
{{ m.last_flashed_at or "-" }}
Created
{{ m.created_at }}
Updated
{{ m.updated_at }}

Assignment

local: PXE boots return sanboot (production / stable). flash: PXE boots chain into the live env so the box re-flashes the assigned image every time (per-job CI cadence). tui: PXE boots chain into the live env in interactive mode (bty-tui on tty1) so the operator picks an image from the server's catalog by hand. The auto-discovery default for unknown MACs is tui; you can flip a known machine here. Completion (POST /pxe/{mac}/done) updates last flashed but never flips the policy - the operator flips back to local when they want the box to stop reflashing.
{# Per-MAC event slice. Filtered to ``subject_kind=machine`` + ``subject_id=this MAC`` server-side; the link forwards the same filter to /ui/events for drill-down. #} {% with events=machine_events, title="Recent activity for this machine", link_to_full="/ui/events?subject_kind=machine&subject_id=" + m.mac %} {% include "ui/_events_card.html" %} {% endwith %} {% endblock %}