-- Migration 072 — Celestica, Asterfusion, FS.com, Edgecore (remaining)
--
-- All 10 URLs verified HTTP 200 (2026-04-21).
--
-- Celestica: assets.foleon.com official Celestica marketing platform CDN.
--   DS3000/DS4000/DS5000: front-panel PNGs from Foleon product portal.
--   DS4000 image shows DS4001 chassis (same physical form factor as DS4000).
--
-- Asterfusion:
--   CX308P-48Y-N + CX532P-N: asterfusion.com WP YOOtheme cache CDN (official vendor).
--   CX864E-N: cloudswit.ch WP CDN (Asterfusion global distributor / reseller page).
--
-- FS.com: resource.fs.com/mall/mainImg/ official FS.com product image CDN.
--
-- Edgecore: edge-core.com official WordPress CDN (remaining models not in migration 057).

-- ── Celestica Open Networking ─────────────────────────────────────────────────

-- DS3000 — 1U open networking switch (Trident 4 / SONiC-ready)
UPDATE switches
SET image_url        = 'https://assets.foleon.com/eu-central-1/de-uploads-7e3kk3/50292/ds3000_front.5e0e163fc429.png',
    product_page_url = COALESCE(product_page_url, 'https://cls.celestica.com/hardware-platforms/ds3000/'),
    assets_scraped_at = NOW()
WHERE model = 'DS3000'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- DS4000 — 2U open networking switch
-- Image shows DS4001 chassis (same physical form factor as DS4000)
UPDATE switches
SET image_url        = 'https://assets.foleon.com/eu-central-1/de-uploads-7e3kk3/50292/ds4001_front.352bb47e68b2.png',
    product_page_url = COALESCE(product_page_url, 'https://cls.celestica.com/hardware-platforms/ds4000ds4001/'),
    assets_scraped_at = NOW()
WHERE model = 'DS4000'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- DS5000 — modular chassis open networking platform
UPDATE switches
SET image_url        = 'https://assets.foleon.com/eu-central-1/de-uploads-7e3kk3/50292/ds5000_frt_branded.f4bbde7e382d.png',
    product_page_url = COALESCE(product_page_url, 'https://cls.celestica.com/hardware-platforms/ds5000/'),
    assets_scraped_at = NOW()
WHERE model = 'DS5000'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'celestica');

-- ── Asterfusion CX-N Series ───────────────────────────────────────────────────

-- CX308P-48Y-N — 48×25G + 8×100G ultra-low-latency ToR switch
UPDATE switches
SET image_url        = 'https://asterfusion.com/wp-content/themes/yootheme/cache/85/CX308P-48Y-N-85bd12e7.png',
    product_page_url = COALESCE(product_page_url, 'https://asterfusion.com/en/product/cx-n-ultra-low-latency-switch/'),
    assets_scraped_at = NOW()
WHERE model = 'CX308P-48Y-N'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'asterfusion');

-- CX532P-N — 32×100G QSFP28 ultra-low-latency spine switch
UPDATE switches
SET image_url        = 'https://asterfusion.com/wp-content/themes/yootheme/cache/54/CX532P-N-542aa364.png',
    product_page_url = COALESCE(product_page_url, 'https://asterfusion.com/en/product/cx-n-ultra-low-latency-switch/'),
    assets_scraped_at = NOW()
WHERE model = 'CX532P-N'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'asterfusion');

-- CX864E-N — 64×400G QSFP-DD AI/HPC fabric switch (512Tbps)
UPDATE switches
SET image_url        = 'https://cloudswit.ch/wp-content/uploads/2025/06/cx-n_CX864E-N.1.webp',
    product_page_url = COALESCE(product_page_url, 'https://cloudswit.ch/product/800gbe-switch-512tbps-enterprise-sonic/'),
    assets_scraped_at = NOW()
WHERE model = 'CX864E-N'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'asterfusion');

-- ── FS.com ────────────────────────────────────────────────────────────────────

-- N8560-32C — 32×100G QSFP28 data center switch (FS Open Networking)
UPDATE switches
SET image_url        = 'https://resource.fs.com/mall/mainImg/20250901110631giyijk.jpg.webp',
    product_page_url = COALESCE(product_page_url, 'https://www.fs.com/products/206227.html'),
    assets_scraped_at = NOW()
WHERE model = 'N8560-32C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'fs-com');

-- S5860-48SC — 48×10G SFP+ + 6×100G QSFP28 aggregation switch
UPDATE switches
SET image_url        = 'https://resource.fs.com/mall/mainImg/20250904105739gktl3t.jpg.webp',
    product_page_url = COALESCE(product_page_url, 'https://www.fs.com/products/115385.html'),
    assets_scraped_at = NOW()
WHERE model = 'S5860-48SC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'fs-com');

-- ── Edgecore Networks (remaining) ─────────────────────────────────────────────

-- DCS810 — 1U data center switch (Tomahawk 3, 32×400G capable)
UPDATE switches
SET image_url        = 'https://www.edge-core.com/wp-content/uploads/2023/08/dcs810-A.png',
    product_page_url = COALESCE(product_page_url, 'https://www.edge-core.com/product/dcs810/'),
    assets_scraped_at = NOW()
WHERE model = 'DCS810'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'edgecore');

-- EPS203 — 48×1G PoE+ + 4×10G SFP+ enterprise access switch
UPDATE switches
SET image_url        = 'https://www.edge-core.com/wp-content/uploads/2023/08/EPS203-A.png',
    product_page_url = COALESCE(product_page_url, 'https://www.edge-core.com/product/eps203/'),
    assets_scraped_at = NOW()
WHERE model = 'EPS203'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'edgecore');
