Add the DrayTek VigorSwitch 2540x pair: same chassis, one with 400 W of PoE #383

Merged
jaylouisw merged 1 commit from device/draytek-2540x into main 2026-11-08 06:59:41 +00:00
Owner

Closes #643.

Same 48-port Gigabit L2+ chassis, six 10G SFP+ uplinks numbered 49-54, one RJ-45 console, static routing and a DHCP server so inter-VLAN traffic does not depend on the gateway.

The only difference is the one that decides whether a device boots: P2540x supplies PoE/PoE+ (802.3af/at Type A) on all 48 copper ports with a 400 W budget and 30 W per port; G2540X supplies none. Two specs rather than one with a flag, because a lab that puts an AP on a G2540X port should see it fail to power. 48 x 30 W is 1440 W against a 400 W supply, so the budget has to be asked rather than assumed.

Both declare connectors explicitly, adding nothing to #1398's 3396 undeclared template ports. SFP+ cages declare speedCaps [1000, 10000]; the test proves a 1G module negotiates at 1G rather than being refused as a downgrade. 86 suites, 4262 assertions, 30 new.

Closes #643. Same 48-port Gigabit L2+ chassis, six 10G SFP+ uplinks numbered 49-54, one RJ-45 console, static routing and a DHCP server so inter-VLAN traffic does not depend on the gateway. **The only difference is the one that decides whether a device boots:** P2540x supplies PoE/PoE+ (802.3af/at Type A) on all 48 copper ports with a 400 W budget and 30 W per port; G2540X supplies none. Two specs rather than one with a flag, because a lab that puts an AP on a G2540X port should see it fail to power. 48 x 30 W is 1440 W against a 400 W supply, so the budget has to be asked rather than assumed. Both declare connectors explicitly, adding nothing to #1398's 3396 undeclared template ports. SFP+ cages declare `speedCaps [1000, 10000]`; the test proves a 1G module negotiates at 1G rather than being refused as a downgrade. 86 suites, 4262 assertions, 30 new.
Add the DrayTek VigorSwitch 2540x pair: same chassis, one with 400 W of PoE
Some checks failed
CI / Test (Node 18) (pull_request) Successful in 1m28s
CI / Test (Node 20) (pull_request) Successful in 1m25s
CI / Test (Node 22) (pull_request) Successful in 1m24s
CI / Server smoke test (pull_request) Successful in 39s
CI / Docker build (pull_request) Failing after 14s
7350b83353
Closes #643. DrayTek had 15 open hardware requests and four models in the catalogue; this fills the biggest of them from the 2540x series datasheet, which documents both switches side by side.

P2540x and G2540X are the same 48-port Gigabit Layer 2+ switch with six 10G SFP+ uplinks numbered 49-54 and one RJ-45 console, 216 Gbps switching capacity and static routing plus a DHCP server so inter-VLAN traffic does not depend on the gateway. The only difference is the one that decides whether a device boots: the P2540x supplies PoE/PoE+ (802.3af/at, Type A) on all 48 copper ports with a 400 W budget and 30 W per port; the G2540X supplies nothing.

Kept as two specs rather than one with a flag, because a lab that puts an access point on a G2540X port should see it fail to power, and 48 ports at 30 W is 1440 W - the budget is deliberately smaller than the per-port maximum, so the switch has to be asked what it can actually deliver rather than assumed.

Both declare their connector explicitly on the template and the uplinks, so they add nothing to the 3396 undeclared-template-port count in #1398. The SFP+ cages declare speedCaps [1000, 10000]: a 1G module in a 10G cage is supported, and the test proves it negotiates at 1G instead of being refused as a downgrade.

86 suites, 4262 assertions, 30 new in test/draytek-2540x.test.js.
jaylouisw force-pushed device/draytek-2540x from 7350b83353
Some checks failed
CI / Test (Node 18) (pull_request) Successful in 1m28s
CI / Test (Node 20) (pull_request) Successful in 1m25s
CI / Test (Node 22) (pull_request) Successful in 1m24s
CI / Server smoke test (pull_request) Successful in 39s
CI / Docker build (pull_request) Failing after 14s
to 4644c30754
Some checks failed
CI / Test (Node 18) (pull_request) Successful in 1m8s
CI / Test (Node 20) (pull_request) Successful in 1m7s
CI / Test (Node 22) (pull_request) Successful in 1m3s
CI / Server smoke test (pull_request) Successful in 25s
CI / Docker build (pull_request) Failing after 10s
2026-11-08 06:40:33 +00:00
Compare
jaylouisw deleted branch device/draytek-2540x 2026-11-08 06:59:42 +00:00
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!383
No description provided.