The dashboard shows DHCP pool utilisation, active leases, message rates and relayed traffic for DHCPv4 and DHCPv6 whenever a local DHCP engine or the relay runs #124

Open
opened 2026-10-31 12:42:11 -04:00 by claude · 0 comments
Owner
  • Draft: PQ-42
  • Priority: high
  • Agent: console-coder
  • Depends on: #121
  • Decisions: Q-PQ-12, R2-DHCP-RELAY

Why

Fourth part of #110: the DHCP charts the owner asked for, including relay nodes.

What changes

In src/angular/src/app/features/dashboard/, a DHCP section using the #121 helper and node filter:

  • Shown only when GET api/statistics/dhcp/summary reports dhcpv4Mode or dhcpv6Mode other than Off, and only with dhcpscopes:read. Hidden otherwise, with no "no permission" card (a server without DHCP should not show DHCP).
  • For a protocol in Local mode:
    • Pool utilisation: one horizontal stacked bar per scope (leased, offered, reserved, available, as percentages), linking to the scope's page. A scope over 90 % is marked with the theme's warning colour.
    • Active leases over time: a line chart, following the range selector.
    • Message rates: a stacked bar chart per bucket. DHCPv4 shows DISCOVER, OFFER, REQUEST, ACK, NAK, plus DECLINE, RELEASE and INFORM; DHCPv6 shows SOLICIT, ADVERTISE, REQUEST, REPLY, plus RENEW, REBIND, RELEASE, DECLINE, CONFIRM and INFORMATION-REQUEST. "No reply" is its own series.
  • For a protocol in Relay mode: a relayed-traffic chart (requests forwarded, replies forwarded, dropped) per bucket, and a one-line note that scopes and leases live on the upstream server.
  • A v4 / v6 toggle switches the message and relay charts.

Acceptance

  • Spec fails first: a summary with both protocols Off renders no DHCP section.
  • Spec: a scope with 90 of 100 slots used shows 90 % and the warning colour.
  • Spec: dhcpv4Mode: "Relay" shows the relayed-traffic chart and no pool chart.
  • Spec: the v6 toggle swaps the message series to the DHCPv6 types.
  • Lint, format and test clean; smoke check in both themes with the DHCP engine on.
  • README dashboard text names the DHCP charts, the relay chart and when each appears.

Source

  • Owner decision 2026-10-31 (Q-PQ-12): "DHCP charts when DHCP is on (pool utilisation per scope, leases over time, DISCOVER/OFFER/REQUEST/ACK/NAK rates, v4 and v6)".
  • Owner decision 2026-10-31, round 2 (R2-DHCP-RELAY): "charts show when a local engine or the relay runs".
- **Draft:** PQ-42 - **Priority:** high - **Agent:** console-coder - **Depends on:** #121 - **Decisions:** Q-PQ-12, R2-DHCP-RELAY ### Why Fourth part of #110: the DHCP charts the owner asked for, including relay nodes. ### What changes In `src/angular/src/app/features/dashboard/`, a DHCP section using the #121 helper and node filter: - Shown only when `GET api/statistics/dhcp/summary` reports `dhcpv4Mode` or `dhcpv6Mode` other than `Off`, and only with `dhcpscopes:read`. Hidden otherwise, with no "no permission" card (a server without DHCP should not show DHCP). - For a protocol in `Local` mode: - Pool utilisation: one horizontal stacked bar per scope (leased, offered, reserved, available, as percentages), linking to the scope's page. A scope over 90 % is marked with the theme's warning colour. - Active leases over time: a line chart, following the range selector. - Message rates: a stacked bar chart per bucket. DHCPv4 shows DISCOVER, OFFER, REQUEST, ACK, NAK, plus DECLINE, RELEASE and INFORM; DHCPv6 shows SOLICIT, ADVERTISE, REQUEST, REPLY, plus RENEW, REBIND, RELEASE, DECLINE, CONFIRM and INFORMATION-REQUEST. "No reply" is its own series. - For a protocol in `Relay` mode: a relayed-traffic chart (requests forwarded, replies forwarded, dropped) per bucket, and a one-line note that scopes and leases live on the upstream server. - A v4 / v6 toggle switches the message and relay charts. ### Acceptance - [ ] Spec fails first: a summary with both protocols `Off` renders no DHCP section. - [ ] Spec: a scope with 90 of 100 slots used shows 90 % and the warning colour. - [ ] Spec: `dhcpv4Mode: "Relay"` shows the relayed-traffic chart and no pool chart. - [ ] Spec: the v6 toggle swaps the message series to the DHCPv6 types. - [ ] Lint, format and test clean; smoke check in both themes with the DHCP engine on. - [ ] README dashboard text names the DHCP charts, the relay chart and when each appears. ### Source - Owner decision 2026-10-31 (Q-PQ-12): "DHCP charts when DHCP is on (pool utilisation per scope, leases over time, DISCOVER/OFFER/REQUEST/ACK/NAK rates, v4 and v6)". - Owner decision 2026-10-31, round 2 (R2-DHCP-RELAY): "charts show when a local engine or the relay runs".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#124
No description provided.