devices(mikrotik): the CCR2004-1G-12S+2XS SFP+ cages run 1G, not 10G-only #2586
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2586
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "catalogue/1127-1152"
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?
Supersedes #2582. Refs #2580.
devices/mikrotik/ccr2004-1g-12s-2xs.jsondeclared all twelve SFP+ cages asspeedCaps: [10000]. A 1G SFP inSFP+1was refused asE_NO_COMMON_SPEED— the two ends shared media but no rate — while the hardware brings that link up happily.The vendor says it in one sentence
MikroTik, 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/
The same text is why
ccr1036andccr2004-16g-2salready carry[1000, 10000]; this row was the odd one out.CAGE_SPEEDS['sfp+']is[1000, 10000], so nothing in the engine had to move — the spec was narrowing a rate the cage already carries.portTemplate.speedCaps[10000][1000, 10000]canMate)E_NO_COMMON_SPEEDnegotiateSpeed= 10002.5G is stated too, and is deliberately not claimed
The same page, under "Devices which support 2.5G links in SFP/SFP+/SFP28 ports", says: "CCR2004-1G-12S+2XS - All SFP+ and SFP28 interfaces can be used in 2.5G mode if required."
That is not modelled, so it is not declared. No
2500BASE-Xmedium exists in the catalogue and no cage ladder (sfp+,sfp28) carries a 2.5G optical rate; a2500cap would advertise a rate the connector table cannot honour, andderivePortHardware()would then hand the port aspeedCapsits ownCAGE_SPEEDSdisagrees with. Adding it means engine work — a 2.5G optic inMEDIA, a 2500 rung on the two optical ladders — which is not this stream. The spec'snotesrecord the vendor sentence and why it is unmodelled, so the next pass does not have to re-derive it.The two SFP28 cages are untouched:
sfp28already defaults to[1000, 10000, 25000]and the spec declares no caps of its own.Test
test/mikrotik-ccr2004-1g-12s-2xs-sfp-rates.test.js, 24 assertions: the template declares its cage and both rates,SFP+1andSFP+12both train at 1G (the declaration is a template, not one port), a 1G SFP peer mates and negotiates 1000, a 10G peer still negotiates 10000, the SFP28 cages keep 1G/10G/25G, no2500appears in the template or the derived caps and no2500BASE-Xmedium exists, and the notes still cite the compatibility page and quote the sentence.Gates
node scripts/syntax-check.js— 571 files, all OKnode scripts/check-control-bytes.ts— cleannode scripts/audit-port-types.js— 0 contradictions; undeclared template ports 2190 (unchanged)node scripts/audit-devices.js— 2359 models, 30,180 ports, 0 hard defects, 0 uncablable ethernet portsnode test/hardware-invariants.test.js— 26 passed, 0 failednode scripts/regen-registry-doc.js— no diff (docs/DEVICE_REGISTRY.mdregenerated, unchanged)