docs: a structure that keeps device-types vendor- and product-agnostic #37

Open
christianmanivong wants to merge 2 commits from docs/structure-plan into main
pull from: docs/structure-plan
Owner

Adds docs/STRUCTURE.md, the agreed plan:

  • This package keeps roles, capabilities, templates, models and I/O-free reconcilers.
  • POSIX host readers, the SSH exec transport and the privilege layer move to a new package, napalm-unix.
  • SNMP polling, ping sweeps, discovery scoring, guest profiles, display labels and warnings belong to the application. Drivers declare SNMP OIDs as data and report facts.
  • Fixes become templates whose values come from the caller.

Documentation only. The steps are tracked in NetOrk/netork#1105: #32, #33, #34, #35, #36.

Adds `docs/STRUCTURE.md`, the agreed plan: - This package keeps roles, capabilities, templates, models and I/O-free reconcilers. - POSIX host readers, the SSH exec transport and the privilege layer move to a new package, napalm-unix. - SNMP polling, ping sweeps, discovery scoring, guest profiles, display labels and warnings belong to the application. Drivers declare SNMP OIDs as data and report facts. - Fixes become templates whose values come from the caller. Documentation only. The steps are tracked in NetOrk/netork#1105: #32, #33, #34, #35, #36.
christianmanivong added 1 commit 2026-10-14 08:23:27 +00:00
docs: a structure that keeps device-types vendor- and product-agnostic
CI / test (3.10) (push) Successful in 28s
CI / test (3.11) (push) Successful in 26s
CI / test (3.12) (push) Successful in 27s
CI / test (3.13) (push) Successful in 25s
CI / test (3.10) (pull_request) Successful in 25s
CI / test (3.11) (pull_request) Successful in 24s
CI / test (3.12) (pull_request) Successful in 25s
CI / test (3.13) (pull_request) Successful in 24s
01fe680456
Roles and capabilities declare, templates run declared steps, reconcilers
stay free of I/O. POSIX host readers, the SSH exec transport and the
privilege layer move to a new package, napalm-unix. SNMP polling, ping
sweeps, discovery scoring, guest profiles, display labels and warnings
belong to the application; drivers declare SNMP OIDs as data and report
facts. Fixes become templates whose values come from the caller.

Says in which order this happens and where the open proposals #8-#14 and
#22 go instead.
christianmanivong added 1 commit 2026-10-14 08:56:18 +00:00
docs: what the drivers need from the SNMP profile, opt-outs, and how getters behave
CI / test (3.10) (push) Successful in 26s
CI / test (3.11) (push) Successful in 24s
CI / test (3.12) (push) Successful in 26s
CI / test (3.13) (push) Successful in 25s
CI / test (3.10) (pull_request) Successful in 25s
CI / test (3.11) (pull_request) Successful in 24s
CI / test (3.12) (pull_request) Successful in 26s
CI / test (3.13) (pull_request) Successful in 25s
c7ea15dbb4
The SNMP profile has to express fallback OIDs, tables folded by first,
average or maximum, numbers inside text values, memory as used, free or
percent, and the uptime source. TX errors counting drops becomes
OPNsense's entry instead of every firewall's.

A driver opts out of an inherited template with None, so callers ask
callable(). USES_SSH, FULL_UPGRADE and platform stay as driver facts.
Getters do not write, a failed read raises, a write reports its real
result, and the application uses public driver methods only.
All checks were successful
CI / test (3.10) (push) Successful in 26s
CI / test (3.11) (push) Successful in 24s
CI / test (3.12) (push) Successful in 26s
CI / test (3.13) (push) Successful in 25s
CI / test (3.10) (pull_request) Successful in 25s
CI / test (3.11) (pull_request) Successful in 24s
CI / test (3.12) (pull_request) Successful in 26s
CI / test (3.13) (pull_request) Successful in 25s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin docs/structure-plan:docs/structure-plan
git checkout docs/structure-plan
Sign in to join this conversation.