-- Migration 068 — NVIDIA Networking (Mellanox Spectrum): SN2201, SN3700, SN4700, SN5400, SN5600
--
-- All 5 URLs verified HTTP 200 (2026-04-21).
-- Image CDN: docscontent.nvidia.com/dims4/ — official NVIDIA docs content CDN
--   Transform URLs (crop/resize/quality params) sourced from Hardware User Manuals.
--   Hash prefix (e.g. 4c002ec) is content-based; stable as long as source doc unchanged.
--   SN3750-SX: no public front-panel image found in SN3000 Hardware User Manual (omitted).
--
-- SN2201: 48×1G management ToR switch (from SN2201 docs, 2023).
-- SN3700: 32×100G Spectrum-2 switch (from SN3000 UM).
-- SN4700: 32×400G Spectrum-3 switch (from SN4000 UM).
-- SN5400: 64×400G Spectrum-4 switch (from SN5000 UM, 2025).
-- SN5600: 64×800G Spectrum-4 switch (from SN5000 UM, same page as SN5400).

-- ── NVIDIA Spectrum Switch Series ────────────────────────────────────────────

-- SN2201 — 48×1G + 4×100G management/ToR switch (Spectrum-1)
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/4c002ec/2147483647/strip/true/crop/1154x123+0+0/resize/1154x123!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F00000197-114e-d989-a79f-fbce7f250000%2Fimages%2Fdownload%2Fattachments%2F2538861503%2Fimage2023-9-3_12-0-58-version-1-modificationdate-1693767659017-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://docs.nvidia.com/networking/display/SN2201'),
    assets_scraped_at = NOW()
WHERE model = 'SN2201'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN3700 — 32×100G Spectrum-2 data center switch
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/3be2526/2147483647/strip/true/crop/1333x142+0+0/resize/1333x142!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019a-4e93-d062-adbe-ce933de80000%2Fimages%2Fdownload%2Fattachments%2F4413914428%2Fimage2019-2-25_11-38-47-version-1-modificationdate-1761741936620-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://docs.nvidia.com/networking/display/sn3000um/introduction'),
    assets_scraped_at = NOW()
WHERE model = 'SN3700'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN4700 — 32×400G QSFP-DD Spectrum-3 switch
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/019a2aa/2147483647/strip/true/crop/1791x188+0+0/resize/1440x151!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019d-86b0-ddad-a3bf-eff5dced0000%2Fimages%2Fdownload%2Fattachments%2F4794381944%2Fimage2020-5-3_12-15-57-version-1-modificationdate-1775996206557-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://docs.nvidia.com/networking/display/sn4000/Introduction'),
    assets_scraped_at = NOW()
WHERE model = 'SN4700'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN5400 — 64×400G QSFP-DD Spectrum-4 switch
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/6a60a24/2147483647/strip/true/crop/1498x302+0+0/resize/1440x290!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019d-1a8d-dcc0-a39f-dacdabb80000%2Fimages%2Fdownload%2Fattachments%2F2705811518%2Fimage-2025-2-9_11-39-27-version-1-modificationdate-1744286748050-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://docs.nvidia.com/networking/display/sn5000/introduction'),
    assets_scraped_at = NOW()
WHERE model = 'SN5400'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN5600 — 64×800G OSFP Spectrum-4 switch (AI/HPC fabric)
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/a8a7cf0/2147483647/strip/true/crop/2076x428+0+0/resize/1440x297!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019d-1a8d-dcc0-a39f-dacdabb80000%2Fimages%2Fdownload%2Fattachments%2F2705811518%2Fimage-2025-2-9_11-37-20-version-1-modificationdate-1744286748283-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://docs.nvidia.com/networking/display/sn5000/introduction'),
    assets_scraped_at = NOW()
WHERE model = 'SN5600'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');
