-- Migration 085 — Mixed straggler image batch
--
-- All URLs verified HTTP 200 (2026-04-21).
--
-- Covers 6 new models + 3 Celestica CDN upgrades (foleon → celestica.com/uploadedImages).
--
-- Sources:
--   N540-24Q2C2DD-SYS: Cisco TD CDN 524146.jpg (213KB JPEG) — explicitly captioned
--     "N540-24Q2C2DD-SYS Front View" in the NCS 540 Hardware Installation Guide.
--     Range 524001–525000 confirmed via systematic scan.
--   Apollo 9900 Series: ribboncommunications.com Drupal files CDN (207KB JPEG).
--     Apollo-9904_2.jpg is the flagship Apollo OPT9904X chassis photo, representative
--     of the entire Apollo 9900 Series family.
--   DS3000/DS4000/DS5000: Upgraded from Foleon portal CDN (migration 072) to the
--     official celestica.com/uploadedImages CDN — PNG files served directly from
--     celestica.com, more stable than the Foleon rendering pipeline.
--   Seastone2: ServeTheHome product review CDN (108KB JPEG, 800×472).
--     Photo shows Celestica Seastone DX010 front panel — the DX010 is the
--     original Seastone2 hardware platform widely documented under this name.
--   Midstone-200i: No dedicated Midstone-200i image exists publicly; using the
--     DS3001 image (celestica.com/uploadedImages, 32KB PNG) as the current
--     equivalent — the DS3001 is Celestica's successor product in the same
--     32-port 100G open networking segment.
--   RA-B6510-48V8C: Micas M2-W6510-48V8C ODM-equivalent (334KB PNG, 1280×1280).
--     Ragile and Micas share common ODM hardware for this 48×25G + 8×100G form
--     factor; ragile.com blocks all scraping. Image from UnixSurplus BigCommerce store.
--   QuantaMesh T7064-IX1D: qct.io product page removed (EOL); using T7064-IX4
--     image from hyperscalers.com (1.4MB PNG) — same 2U 64×100G form factor family,
--     indistinguishable externally. T7064-IX4 image already used in migration 076.

-- ── Cisco NCS 540 ─────────────────────────────────────────────────────────────

-- N540-24Q2C2DD-SYS — NCS 540 24×100G + 2×400G dense aggregation router
-- Image: Cisco TD CDN 524146.jpg (213KB JPEG), NCS 540 Hardware Installation Guide
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/524001-525000/524146.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-24Q2C2DD-SYS'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── Ribbon Communications ────────────────────────────────────────────────────

-- Apollo 9900 Series — Ribbon Apollo OPT9904X/OPT9908X optical transport chassis
-- Image: ribboncommunications.com Drupal files CDN (207KB JPEG)
UPDATE switches
SET image_url        = 'https://ribboncommunications.com/sites/default/files/Apollo-9904_2.jpg',
    product_page_url = COALESCE(product_page_url, 'https://ribboncommunications.com/products/packet-optical-platforms/apollo-9900-series'),
    assets_scraped_at = NOW()
WHERE model = 'Apollo 9900 Series'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'ribbon-communications');

-- ── Celestica — CDN upgrade (foleon → celestica.com/uploadedImages) ──────────

-- DS3000 — 1U 32×400GbE open networking switch (Trident 4)
-- Upgraded from Foleon portal CDN to official celestica.com/uploadedImages CDN
UPDATE switches
SET image_url        = 'https://www.celestica.com/uploadedImages/Site/our-expertise/hardware-platform-solutions/networking/high-performance-networking-switches/DS3000.png',
    assets_scraped_at = NOW()
WHERE model = 'DS3000'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- DS4000 — 2U 64×400GbE open networking switch (Tomahawk 4 / Trident 4)
-- Upgraded from Foleon portal CDN to official celestica.com/uploadedImages CDN
UPDATE switches
SET image_url        = 'https://www.celestica.com/uploadedImages/Site/our-expertise/hardware-platform-solutions/networking/high-performance-networking-switches/DS4000.png',
    assets_scraped_at = NOW()
WHERE model = 'DS4000'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- DS5000 — modular chassis open networking platform (800G)
-- Upgraded from Foleon portal CDN to official celestica.com/uploadedImages CDN
UPDATE switches
SET image_url        = 'https://www.celestica.com/uploadedImages/Site/our-expertise/hardware-platform-solutions/networking/800G-networking-switches/DS5000.png',
    assets_scraped_at = NOW()
WHERE model = 'DS5000'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- ── Celestica — new coverage ─────────────────────────────────────────────────

-- Seastone2 — 1U 32×100G open networking switch (Tomahawk / SONiC)
-- Image: ServeTheHome review CDN (108KB JPEG, 800×472), Seastone DX010 front panel
UPDATE switches
SET image_url        = 'https://www.servethehome.com/wp-content/uploads/2020/12/Celestica-Seastone-DX010-Front-Ports.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.celestica.com/our-expertise/hardware-platform-solutions/networking/high-performance-networking-switches/'),
    assets_scraped_at = NOW()
WHERE model = 'Seastone2'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- Midstone-200i — 1U 32×100G open networking switch (successor: DS3001)
-- No dedicated Midstone-200i image available; using DS3001 (current equivalent)
-- Image: celestica.com/uploadedImages CDN (32KB PNG)
UPDATE switches
SET image_url        = 'https://www.celestica.com/uploadedImages/Site/our-expertise/hardware-platform-solutions/networking/high-performance-networking-switches/DS3001.png',
    product_page_url = COALESCE(product_page_url, 'https://www.celestica.com/our-expertise/hardware-platform-solutions/networking/high-performance-networking-switches/'),
    assets_scraped_at = NOW()
WHERE model = 'Midstone-200i'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- ── Ragile Networks ──────────────────────────────────────────────────────────

-- RA-B6510-48V8C — 1U 48×25G SFP28 + 8×100G QSFP28 data center TOR switch
-- Image: Micas M2-W6510-48V8C ODM equivalent (334KB PNG, 1280×1280)
--   from UnixSurplus BigCommerce store (cdn11.bigcommerce.com).
--   ragile.com blocks all automated access; Micas and Ragile share ODM hardware
--   for this specific form factor.
UPDATE switches
SET image_url        = 'https://cdn11.bigcommerce.com/s-vsgqhdo3pb/images/stencil/1280x1280/products/4463/18390/Micas-M2-W6510-48V8C-All-Switches-100101-1__37341.1746745386.png?c=2',
    product_page_url = COALESCE(product_page_url, 'https://www.ragilenetworks.com/'),
    assets_scraped_at = NOW()
WHERE model = 'RA-B6510-48V8C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'ragile-networks');

-- ── QCT (Quanta Cloud Technology) ────────────────────────────────────────────

-- QuantaMesh T7064-IX1D — 2U 64×100G QSFP28 bare-metal spine switch (EOL)
-- qct.io product page removed; using T7064-IX4 image from hyperscalers.com
-- (same 2U 64×100G form factor; externally indistinguishable from IX1D).
-- T7064-IX4 image also referenced in migration 076 for that model.
UPDATE switches
SET image_url        = 'https://www.hyperscalers.com/image/catalog/00-Products/Networking/QuantaMesh-BMS-T7064-IX4_DSC3446_18040216744.png',
    product_page_url = COALESCE(product_page_url, 'https://www.qct.io/product/index/Networking/Ethernet-Switch/T7000-Series/QuantaMesh-BMS-T7064-IX1D'),
    assets_scraped_at = NOW()
WHERE model = 'QuantaMesh T7064-IX1D'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'quanta-cloud-technology');
