devices(mikrotik): the four CCR rows declare their cages, and two of them were short a port #2582
No reviewers
Labels
No labels
blocked-on-build
bug
device
device-request
enhancement
from-github
needs-datasheet
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/1124-1432"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2580
All four CCR summaries described their ports in a
portTemplatethat named noconnector, nocageand nospeedCaps, soderivePortHardware()inferred a cage from the port name and fell back to 1 Gbit/s. The ports existed and drew as something; nothing in the spec could ever be checked against a datasheet.scripts/audit-port-types.jsreported 48 of them underundeclaredTemplateHardware.Declared hardware
ccr2004-16g-2s.jsonrj45, 10/100/1000ccr2004-1g-12s-2xs.jsonsfp+, 1G/10G;eth1rj45; both SFP28 cagessfp28ccr2116-12g-4s.jsonrj45, 10/100/1000ccr1036.jsonrj45+ 2xsfp+declaredCCR2116-12G-4S+ is thirteen copper ports, not twelve
The spec modelled the twelve switch-chip ports and dropped the thirteenth. Product page, Ethernet section:
10/100/1000 Ethernet ports 13; manual, Extension slots and ports: "13x 10/100/1000 Ethernet ports. 4x 10G SFP+ ports."; product text: "12 of them are running through the Marvel chip. And there is another Gigabit port connected directly to the CPU. For management purposes."eth13is now a modelled 1G RJ45 socket, so a topology that needs the management jack has somewhere to plug it in.CCR1036-8G-2S+ declares its two cages
Product page, Fiber:
SFP+ ports 2; Ethernet:10/100/1000 Ethernet ports 8; "Supports both SFP (1.25G) and SFP+ (10G) modules". The two SFP+ cages - the ones in the model's own name - were missing entirely. The file now declaresSFP+1/SFP+2assfp+withspeedCaps[1000, 10000], and carries thesourceUrlandnotesit had neither of.Test
New
test/mikrotik-ccr-declared-hardware.test.js(42 assertions) asserts, per row: no template port is left undeclared, no port contradicts its declared type, every declared connector resolves to the family it names, the CCR2116 terminates thirteen copper sockets witheth13cableable over 1000BASE-T, the CCR1036's two cages meet over a 10GBASE-SR optic at 10G, and each row cites its vendor page.docs/CONNECTORS.mdregenerated: 30,177 -> 30,180 sockets (one on the CCR2116, two on the CCR1036).Gates
node scripts/syntax-check.js- 570 files, all OKnode scripts/check-control-bytes.ts- cleannode scripts/audit-port-types.js- 0 contradictions; undeclared template ports 2,238 -> 2,190node scripts/audit-devices.js- 0 hard defects, 0 uncablable portsArm auto-merge went green but could not arm this pull request.
Every status on
fd50e2e14e0a485c94e198d8489a6083e93c0b6dissuccess, so the gateapproved the change; the arm call was refused:
The branch is untouched and the scheduled pass will try again. This
comment exists because the job log needs a login to read.
Surgery watch: green, but now conflicted with main — 4 files, and one real question inside it.
Your head
fd50e2e1is all-green (6/6) butmergeable=false. Cause is not your work: #2581 (78109ade, merged 14:43) rewrote the same four Mikrotik rows 35 minutes before this merged, sogit merge origin/maingivesCONFLICT (content)inccr1036.json,ccr2004-16g-2s.json,ccr2004-1g-12s-2xs.json,ccr2116-12g-4s.json— ondescriptionandnotes, i.e. prose both sides rewrote independently.I compared the two trees structurally. Only one difference is not prose:
78109ade)ccr2004-1g-12s-2xs.jsonportTemplate.speedCaps[10000][1000, 10000]ccr1036.jsoncapabilitiesfirewall,l2-forwardEverything else —
interfaces,portTemplatefields,cage/connector data — is identical, and main is ahead onccr1036.capabilities. So a plain "keep both" resolution is not available: on three of the four files your structural change is already in main, and the 1G-on-SFP+ claim inccr2004-1g-12s-2xsis a device fact (do those 12 cages negotiate 1G?) that I will not guess.Ask: rebase
fix/1124-1432ontoorigin/mainyourself, drop the prose you no longer need against78109ade's version, and keep thespeedCapschange — then I will merge on green. If the 1G-on-SFP+ claim is wrong, drop it and close this as superseded by78109ade.Method note for whoever picks this up: squash merges here mean
git branch --mergednever lists anything, so "is this already in main" has to be answered by diffing the trees, not ancestry.needs Jay's decision - the four device hunks are a competing rewrite, not a merge I can resolve.
I merged
origin/mainintofix/1124-1432locally. The PR's fourdevices/mikrotik/ccr*.jsonfiles conflict on every spec field:description,capabilities,notesorder andsourceUrlposition. Main already carries its own rewrite of the same four specs, landed by78109ade(devices(mikrotik): the CCR templates declared no connector, and the CCR2116 was one jack short, #2581): the SFP+ cages are declared withconnector: sfp+, the copperportTemplatecarriesconnector: rj45+speedCaps [10,100,1000], and the ccr1036 additionally hasfirewall+l2-forward. So this PR's device work is superseded in substance but not byte-identical, and choosing between two descriptions of the same hardware is a judgement call, not a mechanical merge.Net difference against main, per file (I compared parsed JSON, not text):
ccr1036,ccr2004-16g-2s,ccr2116-12g-4s: main's version is a superset/equal - nothing here adds a port or a speedCap main lacks.ccr2004-1g-12s-2xs: the only substantive delta - this PR gives the 12 SFP+ cagesspeedCaps [1000, 10000]; main has[10000]. Whether the CCR2004-1G-12S+2XS cages take a 1G SFP module is a datasheet question, and the two branches disagree. I am not guessing it.test/mikrotik-ccr-declared-hardware.test.js(202 lines) and a regenerateddocs/CONNECTORS.mdcount (30180 sockets).Decision needed: (1) does the ccr2004-1g-12s-2xs SFP+ cage accept 1G optics -
[1000,10000]or[10000]? and (2) should the hardware test be re-cut on top of main's #2581 specs and opened as its own PR, or is it moot now that main declares the cages?Verified: head SHA
fd50e2e1is green on all six legs;mergeable=falseis real (content conflicts, not a stale poll); the ccr1036/2004-16g-2s/2116 conflicts cleanly reduce to main's side, so this PR cannot be rebased without dropping one side of a semantic hunk. Not merged, not rebased.needs Jay's decision — narrowed to one line and one either/or.
I re-derived this diff from the PR head
fd50e2e1against mainc64f5175, parsing the JSON rather than the text. The prose conflicts are unchanged, but the only structural delta across all four files is:78109ade)ccr2004-1g-12s-2xsportTemplate.speedCaps[10000][1000, 10000]Every other cage matches main exactly:
ccr10362xsfp+ [1000,10000],ccr2004-16g-2s2xsfp+ [1000,10000],ccr2116-12g-4s4xsfp+ [10000]. So there is no "keep both sides" available — three files are pure prose, and one line is a hardware claim.Two things worth seeing before ruling:
notesforccr2004-1g-12s-2xsquote only "12x SFP+ cages" — no 1G-on-SFP+ statement, unlike itsccr2004-16g-2snote which quotes "Supports both SFP (1.25G) and SFP+ (10G) modules". The[1000, 10000]on the twelve cages is the one claim in the PR with no citation behind it.78109adegivesccr1036andccr2004-16g-2sSFP+[1000, 10000]butccr2004-1g-12s-2xsandccr2116-12g-4s[10000]. Repo-wide, 280 device files declare SFP+ cages as 1G/10G and 30 as 10G-only, so the majority convention does not settle it.Either answer unblocks this PR in one pass:
[10000]-only CCR rows (and this PR'sccr2116) probably want a follow-up for consistency.test/mikrotik-ccr-declared-hardware.test.js+ onedocs/CONNECTORS.mdrow, which I can rebase and land with no further questions.Head status is all-green (6/6);
mergeable=falseis the content conflict above, not an add/add collision.The 1G question has a vendor answer, so it is no longer a judgement call.
This comment asked whether the twelve SFP+ cages negotiate 1G. MikroTik states it outright - MikroTik wired interface compatibility, section
Devices which SFP+ ports support 1G links:https://manual.mikrotik.com/docs/7.25/wired-connections/mikrotik-wired-interface-compatibility/
So the branch's single structural delta is the correct device fact, and it now has the citation it was missing. I have opened it as a one-line change against current main, with a 24-assertion test, rather than resolving four files of competing prose here: pull request 2586.
One caveat recorded there: the same page also lists this model under Devices which support 2.5G links in SFP/SFP+/SFP28 ports ("All SFP+ and SFP28 interfaces can be used in 2.5G mode if required"). That is not claimed, because no
2500BASE-Xmedium exists in the catalogue and neither optical cage ladder carries a 2.5G rung - it would be a rate the connector table cannot honour.With 2586 carrying the hardware claim, this branch is superseded in substance; nothing in it adds a port or a rate that 2586 does not.
fd50e2e14e8b7e31b33fRebased onto main (
8b7e31b3-> merged as06e11ce6) and the queue moved under this PR while it sat: the device-side edits it proposed are now on main word for word from other streams �ccr1036carries its two SFP+ cages,ccr2116-12g-4sdeclares eth13,ccr2004-16g-2sandccr2004-1g-12s-2xsdeclare their connectors (#2586 landed the 1G SFP+ speedCaps question in the notes I escalated), and docs/CONNECTORS.md already reads 30180 sockets. The four JSON conflicts were therefore accepted as main's content, verified semantically identical (same ports, cages, connectors, counts) rather than by eyeballing prose.What survived is the part nothing else had:
test/mikrotik-ccr-declared-hardware.test.js, 202 lines / 42 assertions. It passes unmodified against main's four specs, so it is a regression net, not a pending change. Ranaudit-port-types,audit-devices,test/faceplate-catalogue,test/hardware-invariants,test/doc-catalog-countsand the sibling SFP-rate test locally: 0 gated defects.