DEVICE_REGISTRY: the count page was behind the catalogue the merge just grew #1532

Merged
jaylouisw merged 1 commit from docs/1115-1915 into main 2026-11-15 19:22:45 +00:00
Owner

docs/DEVICE_REGISTRY.md said 2,039 models across 251 vendors and 292 switches.

The catalogue says otherwise, and the code is the truth:

  • find devices -name "*.json" | wc -l -> 2045
  • ls -d devices/*/ | wc -l -> 252 vendor directories
  • grep -rl '"category": "switch"' devices --include=*.json | wc -l -> 298

The drift comes from #1530 (Ruijie Reyee NBS3100, six switches and a vendor the catalogue did not have), merged eleven minutes before this branch was cut. scripts/regen-registry-doc.js rewrote the two values it owns; --check now reports the page current.

Guard counts: test/doc-catalog-counts.test.js 20 passed / 4 failed before -> 24 / 0 after. test/docs-show-commands.test.js 7/0, test/help-completeness.test.js 8/0, test/help-key-works-in-every-prompt.test.js 9/0, scripts/syntax-check.js 320 files OK.

Docs-only; no engine change.

Left alone, and worth its own run: the table under that headline is captioned "the largest vendors by model count" but is not sorted by it (Ubiquiti 367 below MikroTik 366; Teltonika 88 below Aruba 73 and Huawei 82).

docs/DEVICE_REGISTRY.md said **2,039 models across 251 vendors** and 292 switches. The catalogue says otherwise, and the code is the truth: - `find devices -name "*.json" | wc -l` -> 2045 - `ls -d devices/*/ | wc -l` -> 252 vendor directories - `grep -rl '"category": "switch"' devices --include=*.json | wc -l` -> 298 The drift comes from #1530 (Ruijie Reyee NBS3100, six switches and a vendor the catalogue did not have), merged eleven minutes before this branch was cut. `scripts/regen-registry-doc.js` rewrote the two values it owns; `--check` now reports the page current. Guard counts: `test/doc-catalog-counts.test.js` 20 passed / 4 failed before -> 24 / 0 after. `test/docs-show-commands.test.js` 7/0, `test/help-completeness.test.js` 8/0, `test/help-key-works-in-every-prompt.test.js` 9/0, `scripts/syntax-check.js` 320 files OK. Docs-only; no engine change. Left alone, and worth its own run: the table under that headline is captioned "the largest vendors by model count" but is not sorted by it (Ubiquiti 367 below MikroTik 366; Teltonika 88 below Aruba 73 and Huawei 82).
DEVICE_REGISTRY: the count page was behind the catalogue the merge just grew
All checks were successful
CI / Classify the change (pull_request) Successful in 15s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 17s
CI / Test (Node 20) (pull_request) Successful in 3m16s
CI / Test (Node 18) (pull_request) Successful in 3m29s
CI / Server smoke test (pull_request) Successful in 27s
CI / Docker build (pull_request) Successful in 44s
CI / Test (Node 22) (pull_request) Successful in 2m58s
1002832591
The Ruijie Reyee merge (#1530) added six switches and a vendor; the page still
said 2,039 models across 251 vendors and 292 switches. Recounted from
devices/ (2045 JSON specs, 252 vendor directories, 298 with category switch)
and rewritten with scripts/regen-registry-doc.js, which reports nothing to
change now. test/doc-catalog-counts.test.js goes 20 passed / 4 failed -> 24 / 0.
jaylouisw scheduled this pull request to auto merge when all checks succeed 2026-11-15 19:22:33 +00:00
jaylouisw force-pushed docs/1115-1915 from 1002832591
All checks were successful
CI / Classify the change (pull_request) Successful in 15s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 17s
CI / Test (Node 20) (pull_request) Successful in 3m16s
CI / Test (Node 18) (pull_request) Successful in 3m29s
CI / Server smoke test (pull_request) Successful in 27s
CI / Docker build (pull_request) Successful in 44s
CI / Test (Node 22) (pull_request) Successful in 2m58s
to 1cb8866852
Some checks failed
CI / Classify the change (pull_request) Successful in 15s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 18s
CI / Server smoke test (pull_request) Has been skipped
CI / Docker build (pull_request) Has been skipped
CI / Test (Node 22) (pull_request) Failing after 10m44s
CI / Test (Node 20) (pull_request) Failing after 10m48s
CI / Test (Node 18) (pull_request) Failing after 11m7s
2026-11-15 19:22:36 +00:00
Compare
Sign in to join this conversation.
No reviewers
No milestone
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.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge!1532
No description provided.