devices(mikrotik): the CCR templates declared no connector, and the CCR2116 was one jack short #2581

Merged
jaylouisw merged 1 commit from catalogue/1124-1422 into main 2026-11-24 14:43:08 +00:00
Owner

Fixes #2580

What the vendor says

model row
CCR2004-16G-2S+ 10/100/1000 Ethernet ports 16, SFP+ ports 2 — https://mikrotik.com/product/ccr2004_16g_2splus ; manual: "Number of 1G Ethernet ports 16", "Number of 10G SFP+ ports 2" — https://manual.mikrotik.com/hardware/ccr2004-16g-2s-plus/
CCR2004-1G-12S+2XS 10/100/1000 Ethernet ports 1, SFP+ ports 12, Number of 25G SFP28 ports 2 — https://mikrotik.com/product/ccr2004_1g_12s_2xs
CCR2116-12G-4S+ 10/100/1000 Ethernet ports 13, SFP+ ports 4 — https://mikrotik.com/product/ccr2116_12g_4splus ; manual: "13x 10/100/1000 Ethernet ports. 4x 10G SFP+ ports." — https://manual.mikrotik.com/hardware/ccr2116-12g-4s-plus/
CCR1036-8G-2S+ 10/100/1000 Ethernet ports 8, SFP+ ports 2, "Supports both SFP (1.25G) and SFP+ (10G) modules" — https://mikrotik.com/product/CCR1036-8G-2Splus

What changed

  • Every template now declares connector: rj45 with speedCaps [10,100,1000] at 1G; the CCR2004-1G-12S+2XS template and the CCR1036 SFP+ cages declare sfp+, and its two SFP28 cages declare sfp28. That is the undeclaredTemplateHardware class from scripts/audit-port-types.js — nothing was checkable against a datasheet, and the rate fell back to 1G.
  • CCR2116-12G-4S+: 12 → 13 copper ports. The thirteenth is the MGMT/BOOT jack wired directly to the CPU ("another Gigabit port connected directly to the CPU. For management purposes."). Description now says thirteen and explains the split; notes name the table row.
  • CCR1036-8G-2S+: the two SFP+ cages were missing entirely although they are in the model name. Added with speedCaps [1000,10000] from "Supports both SFP (1.25G) and SFP+ (10G) modules". Also added l2-forward and firewall, both evidenced by the page's own throughput table (Bridging rows; "Routing / 25 ip filter rules").
  • Three of the four cited no source URL; all four now carry sourceUrl plus notes naming the exact table rows and the second document.
  • docs/CONNECTORS.md regenerated (30,177 → 30,180 sockets; no hand edits).

Gates

node scripts/syntax-check.js        Syntax-checked 569 files (560 JavaScript, 9 TypeScript): all OK
node scripts/audit-port-types.js     Gated: 0 port(s) contradict their declared type. Reported: 2190 (was 2238)
node scripts/import-devices.js --dry-run   no capability dropped, nothing written
node test/hardware-invariants.test.js      26 passed, 0 failed
node test/spec-vs-description.test.js       3 passed, 0 failed
node test/catalogue-hygiene.test.js        25 passed, 0 failed
node test/import-devices-capabilities.test.js  34 passed, 0 failed
node test/capability-vocabulary.test.js    13 passed, 0 failed

undeclaredTemplateHardware falls from 110 specs / 2238 ports to 106 specs / 2190 ports.

Fixes #2580 ## What the vendor says | model | row | |---|---| | CCR2004-16G-2S+ | `10/100/1000 Ethernet ports 16`, `SFP+ ports 2` — https://mikrotik.com/product/ccr2004_16g_2splus ; manual: "Number of 1G Ethernet ports 16", "Number of 10G SFP+ ports 2" — https://manual.mikrotik.com/hardware/ccr2004-16g-2s-plus/ | | CCR2004-1G-12S+2XS | `10/100/1000 Ethernet ports 1`, `SFP+ ports 12`, `Number of 25G SFP28 ports 2` — https://mikrotik.com/product/ccr2004_1g_12s_2xs | | CCR2116-12G-4S+ | `10/100/1000 Ethernet ports 13`, `SFP+ ports 4` — https://mikrotik.com/product/ccr2116_12g_4splus ; manual: "13x 10/100/1000 Ethernet ports. 4x 10G SFP+ ports." — https://manual.mikrotik.com/hardware/ccr2116-12g-4s-plus/ | | CCR1036-8G-2S+ | `10/100/1000 Ethernet ports 8`, `SFP+ ports 2`, "Supports both SFP (1.25G) and SFP+ (10G) modules" — https://mikrotik.com/product/CCR1036-8G-2Splus | ## What changed - Every template now declares `connector: rj45` with `speedCaps [10,100,1000]` at 1G; the CCR2004-1G-12S+2XS template and the CCR1036 SFP+ cages declare `sfp+`, and its two SFP28 cages declare `sfp28`. That is the `undeclaredTemplateHardware` class from `scripts/audit-port-types.js` — nothing was checkable against a datasheet, and the rate fell back to 1G. - **CCR2116-12G-4S+: 12 → 13 copper ports.** The thirteenth is the MGMT/BOOT jack wired directly to the CPU ("another Gigabit port connected directly to the CPU. For management purposes."). Description now says thirteen and explains the split; notes name the table row. - **CCR1036-8G-2S+: the two SFP+ cages were missing entirely** although they are in the model name. Added with `speedCaps [1000,10000]` from "Supports both SFP (1.25G) and SFP+ (10G) modules". Also added `l2-forward` and `firewall`, both evidenced by the page's own throughput table (Bridging rows; "Routing / 25 ip filter rules"). - Three of the four cited no source URL; all four now carry `sourceUrl` plus `notes` naming the exact table rows and the second document. - `docs/CONNECTORS.md` regenerated (30,177 → 30,180 sockets; no hand edits). ## Gates ``` node scripts/syntax-check.js Syntax-checked 569 files (560 JavaScript, 9 TypeScript): all OK node scripts/audit-port-types.js Gated: 0 port(s) contradict their declared type. Reported: 2190 (was 2238) node scripts/import-devices.js --dry-run no capability dropped, nothing written node test/hardware-invariants.test.js 26 passed, 0 failed node test/spec-vs-description.test.js 3 passed, 0 failed node test/catalogue-hygiene.test.js 25 passed, 0 failed node test/import-devices-capabilities.test.js 34 passed, 0 failed node test/capability-vocabulary.test.js 13 passed, 0 failed ``` `undeclaredTemplateHardware` falls from 110 specs / 2238 ports to 106 specs / 2190 ports.
devices(mikrotik): the CCR templates declared no connector, and the CCR2116 was one jack short
All checks were successful
CI / Server smoke and Docker build (pull_request) Successful in 38s
CI / Typecheck (pull_request) Successful in 20s
CI / Test (Node 24) (pull_request) Successful in 1m1s
CI / Test (Node 22) (pull_request) Successful in 1m2s
CI / Arm auto-merge (pull_request) Successful in 5s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 17s
f40588352d
Four CCR specs left the connector to be inferred from the port name: CCR2004-16G-2S+, CCR2004-1G-12S+2XS, CCR2116-12G-4S+ and CCR1036-8G-2S+. The templates now say rj45 with 10/100/1000 speed caps, and the cages say sfp+ / sfp28.

Two census defects fell out of reading the vendor tables:

- CCR2116-12G-4S+ printed 12 copper ports. MikroTik states 13: the specification table row "10/100/1000 Ethernet ports 13" and the manual "13x 10/100/1000 Ethernet ports". The thirteenth is the MGMT/BOOT jack wired straight to the CPU, so a lab could not cable it.
- CCR1036-8G-2S+ had no SFP+ cages at all (the vendor table prints "SFP+ ports 2") and cited no source.

Three of the four cited no source URL; all four now carry sourceUrl and notes naming the table rows.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 14:29:18 +00:00
forgejo-actions canceled auto merging this pull request when all checks succeed 2026-11-24 14:30:48 +00:00
jaylouisw deleted branch catalogue/1124-1422 2026-11-24 14:43:19 +00:00
Sign in to join this conversation.
No description provided.