-- Migration 060 — HPE Aruba CX and Extreme Networks product images
--
-- HPE Aruba: HPE's own CDN (buy.hpe.com) blocks scrapers with 403.
--   CX 10000-48Y6C: cdn11.bigcommerce.com (hummingbirdnetworks.com Bigcommerce, 650x650 JPEG).
--   CX 9300-32D: cdn.kaseyaquotemanager.com (Kaseya distributor DB, 900x900 JPEG).
--   CX 6300-48G-4SFP56 (JL667A): avendor.com Shopify CDN (900x900 JPEG).
--   All three verified HTTP 200 JPEG (2026-04-21).
--
-- Extreme Networks: extr-p-001.sitecorecontenthub.cloud (official Extreme Networks
--   Sitecore Content Hub CDN). All three verified HTTP 200 PNG (2026-04-21).
--   X695 image is 1.7MB high-resolution (X695_CAM-002.png in metadata).

-- ── HPE Aruba CX ─────────────────────────────────────────────────────────────

-- CX 10000-48Y6C — 48×25G + 6×100G AI-powered distributed services switch
UPDATE switches
SET image_url        = 'https://cdn11.bigcommerce.com/s-b9xom8/images/stencil/1280x1280/products/197734/278084/1077268119__51471.1750730139.jpg?c=2',
    product_page_url = COALESCE(product_page_url, 'https://www.arubanetworks.com/products/switches/core/'),
    assets_scraped_at = NOW()
WHERE model = 'CX 10000-48Y6C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hpe-aruba');

-- CX 9300-32D — 32×400G QSFP-DD high-density core switch
UPDATE switches
SET image_url        = 'https://cdn.kaseyaquotemanager.com/0-master/productimages/96/68af6c70ebc49b.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.arubanetworks.com/products/switches/core/'),
    assets_scraped_at = NOW()
WHERE model = 'CX 9300-32D'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hpe-aruba');

-- CX 6300-48G-4SFP56 (JL667A) — 48×1G + 4×25G enterprise access switch
UPDATE switches
SET image_url        = 'https://www.avendor.com/cdn/shop/files/1078288210_1024x.jpg?v=1745938163',
    product_page_url = COALESCE(product_page_url, 'https://www.arubanetworks.com/products/switches/access/'),
    assets_scraped_at = NOW()
WHERE model = 'CX 6300-48G-4SFP56'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hpe-aruba');

-- ── Extreme Networks ──────────────────────────────────────────────────────────

-- SLX 9740-40C — 40×100G SP/DC routing platform (ex-Brocade)
UPDATE switches
SET image_url        = 'https://extr-p-001.sitecorecontenthub.cloud/api/public/content/c4c6c1b3e7e34d0ba9bc8f001d5a8a72?v=4c96dc08',
    product_page_url = COALESCE(product_page_url, 'https://www.extremenetworks.com/products/slx-9740/'),
    assets_scraped_at = NOW()
WHERE model = 'SLX 9740-40C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'extreme-networks');

-- X695-48Y-8C — 48×25G + 8×100G ExtremeSwitching data center switch
UPDATE switches
SET image_url        = 'https://extr-p-001.sitecorecontenthub.cloud/api/public/content/e3dd4612450048dfafa069c91634bb30?v=3a91d043',
    product_page_url = COALESCE(product_page_url, 'https://www.extremenetworks.com/products/extremeswitching-x695/'),
    assets_scraped_at = NOW()
WHERE model = 'X695-48Y-8C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'extreme-networks');

-- 5520-48T — 48×1G PoE+ + 4×10G SFP+ campus switch
UPDATE switches
SET image_url        = 'https://extr-p-001.sitecorecontenthub.cloud/api/public/content/6b3cc351ac7c4abd9f95714a66c95ed0?v=f90fe8b3',
    product_page_url = COALESCE(product_page_url, 'https://www.extremenetworks.com/products/extremeswitching-5520/'),
    assets_scraped_at = NOW()
WHERE model = '5520-48T'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'extreme-networks');
