-- Migration 056 — ALE OmniSwitch, H3C, Hirschmann, Ciena, Netberg product images
--
-- ALE: web-assets.al-enterprise.com (official ALE CDN). ALE does not publish
--   variant-specific images for X72/P48Z8/C32D; family-level hero images used.
--   6900-X72 → 6900 family (V48C8 hero), 6560-P48Z8 → 6560 family (P24Z8 front),
--   9900-C32D → 9912 chassis (C32D is a line-card, no dedicated standalone photo).
--
-- H3C: resource.h3c.com CDN (official H3C engineering resource server).
--   All URLs return HTTP 200 image/webp or image/jpeg (2026-04-21).
--
-- Hirschmann (Belden): Hirschmann.com returns 403; images sourced from
--   industrialcomms.com (authorized distributor, Shopify CDN) and icomtechinc.com.
--
-- Ciena: ciena.com/__data/assets/image (official Ciena CDN).
--   3930 is EOL; ciena.com product page returns 404; ghekko.com reseller image used.
--
-- Netberg: netbergtw.com/wp-content/uploads (official Netberg site).
--   All URLs verified HTTP 200 (2026-04-21).

-- ── Alcatel-Lucent Enterprise (ALE) OmniSwitch ────────────────────────────────

-- OmniSwitch 6900-X72 — 72×10G L3 switch (family image: 6900 series)
UPDATE switches
SET image_url        = 'https://web-assets.al-enterprise.com/-/media/assets/internet/images/os6900-v48c8-t-l-480x480-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://www.al-enterprise.com/en/products/switches/omniswitch-6900-series'),
    assets_scraped_at = NOW()
WHERE model = 'OmniSwitch 6900-X72'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'alcatel-lucent-enterprise');

-- OmniSwitch 6560-P48Z8 — 48×1G PoE + 8×10G switch (family image: 6560 P24Z8 front)
UPDATE switches
SET image_url        = 'https://web-assets.al-enterprise.com/-/media/assets/internet/images/omniswitch-6560-p24z8-front-480x480-product-showcase.png',
    product_page_url = COALESCE(product_page_url, 'https://www.al-enterprise.com/en/products/switches/omniswitch-6560-series'),
    assets_scraped_at = NOW()
WHERE model = 'OmniSwitch 6560-P48Z8'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'alcatel-lucent-enterprise');

-- OmniSwitch 9900-C32D — modular chassis (C32D line card; 9912 chassis image)
UPDATE switches
SET image_url        = 'https://web-assets.al-enterprise.com/-/media/assets/internet/images/omniswitch-9912-l-t-354x384.png',
    product_page_url = COALESCE(product_page_url, 'https://www.al-enterprise.com/en/products/switches/omniswitch-9000-series'),
    assets_scraped_at = NOW()
WHERE model = 'OmniSwitch 9900-C32D'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'alcatel-lucent-enterprise');

-- ── H3C ───────────────────────────────────────────────────────────────────────

-- S12500X-AF — flagship core switch (S12504X-AF front panel)
UPDATE switches
SET image_url        = 'https://resource.h3c.com/en/202510/29/20251029_14969689_S12504X-AF_F_1408_2657724_748048_0.webp',
    product_page_url = COALESCE(product_page_url, 'https://www.h3c.com/en/Products_Technology/Products/Switches/H3C_S12500X/Overview/'),
    assets_scraped_at = NOW()
WHERE model = 'S12500X-AF'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'h3c');

-- S6860-54HT — 48×25G + 6×100G high-density ToR switch
UPDATE switches
SET image_url        = 'https://resource.h3c.com/en/202206/25/20220625_7375428_x_Img_x_png_3_1633360_294551_0.png',
    product_page_url = COALESCE(product_page_url, 'https://www.h3c.com/en/Products_Technology/Products/Switches/H3C_S6860/Overview/'),
    assets_scraped_at = NOW()
WHERE model = 'S6860-54HT'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'h3c');

-- S5170-54S-EI — 48×1G + 6×10G enterprise access switch
UPDATE switches
SET image_url        = 'https://resource.h3c.com/en/202206/02/20220602_7257310_3_1616780_294549_0.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.h3c.com/en/Products_Technology/Products/Switches/H3C_S5170/Overview/'),
    assets_scraped_at = NOW()
WHERE model = 'S5170-54S-EI'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'h3c');

-- ── Hirschmann (Belden) ───────────────────────────────────────────────────────

-- MACH4002-48G-L3P — managed rail-mount industrial switch
UPDATE switches
SET image_url        = 'https://www.icomtechinc.com/images/product/large/943911301.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.belden.com/products/network-infrastructure/industrial-ethernet-switches'),
    assets_scraped_at = NOW()
WHERE model = 'MACH4002-48G-L3P'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hirschmann');

-- RSP30-08033O6TT-SK — redundant switched Power over Ethernet switch
UPDATE switches
SET image_url        = 'https://www.industrialcomms.com/cdn/shop/products/RSP30-08033O6TT-SK9V9HSE2S_942053006.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.belden.com/products/network-infrastructure/industrial-ethernet-switches'),
    assets_scraped_at = NOW()
WHERE model = 'RSP30-08033O6TT-SK'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hirschmann');

-- GREYHOUND-1040-BT — compact DIN-rail industrial switch
UPDATE switches
SET image_url        = 'https://www.industrialcomms.com/cdn/shop/products/GRS1042-AT2ZTHH12VYHHSE3AMR_942135003_480x_b38c70d1-1841-43ab-a27e-0b4509488812.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.belden.com/products/network-infrastructure/industrial-ethernet-switches'),
    assets_scraped_at = NOW()
WHERE model = 'GREYHOUND-1040-BT'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hirschmann');

-- DRAGON-MACH4500-48G6XG — high-performance managed backbone switch
UPDATE switches
SET image_url        = 'https://www.industrialcomms.com/cdn/shop/products/DRAGONMACH4500-80G_8X-L3A-MR_942153003.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.belden.com/products/network-infrastructure/industrial-ethernet-switches'),
    assets_scraped_at = NOW()
WHERE model = 'DRAGON-MACH4500-48G6XG'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'hirschmann');

-- ── Ciena ─────────────────────────────────────────────────────────────────────

-- 8700 Packetwave — 10-slot modular WDM packet transport platform
UPDATE switches
SET image_url        = 'https://www.ciena.com/__data/assets/image/0032/61997/PRX_8700-10-slot_SO.png',
    product_page_url = COALESCE(product_page_url, 'https://www.ciena.com/products/8700-packetwave-platform'),
    assets_scraped_at = NOW()
WHERE model = '8700 Packetwave'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'ciena');

-- 5171 — compact packet networking platform
UPDATE switches
SET image_url        = 'https://www.ciena.com/__data/assets/image/0024/61980/prx-5171-v2-comp.png',
    product_page_url = COALESCE(product_page_url, 'https://www.ciena.com/products/5171-packet-networking-platform'),
    assets_scraped_at = NOW()
WHERE model = '5171'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'ciena');

-- 3930 — carrier Ethernet access switch (EOL; official page 404, reseller image)
UPDATE switches
SET image_url        = 'https://manager.ghekko.com/storage/images/img_5c6406e958c1fPRX_3930_SO2.png',
    product_page_url = COALESCE(product_page_url, 'https://www.ciena.com/products/3930'),
    assets_scraped_at = NOW()
WHERE model = '3930'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'ciena');

-- ── Netberg ───────────────────────────────────────────────────────────────────

-- Aurora 810 — 32×100G whitebox SONiC switch
UPDATE switches
SET image_url        = 'https://netbergtw.com/wp-content/uploads/2018/06/aurora_810_front_angled.webp',
    product_page_url = COALESCE(product_page_url, 'https://netbergtw.com/product/aurora-810/'),
    assets_scraped_at = NOW()
WHERE model = 'Aurora 810'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'netberg');

-- Aurora 750 — 48×25G + 8×100G whitebox switch
UPDATE switches
SET image_url        = 'https://netbergtw.com/wp-content/uploads/2018/08/aurora_750_front_angled-1.jpg',
    product_page_url = COALESCE(product_page_url, 'https://netbergtw.com/product/aurora-750/'),
    assets_scraped_at = NOW()
WHERE model = 'Aurora 750'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'netberg');

-- Aurora 620 — 48×10G + 6×100G whitebox switch
UPDATE switches
SET image_url        = 'https://netbergtw.com/wp-content/uploads/2018/09/aurora_620_front_angled.jpg',
    product_page_url = COALESCE(product_page_url, 'https://netbergtw.com/product/aurora-620/'),
    assets_scraped_at = NOW()
WHERE model = 'Aurora 620'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'netberg');
