-- Migration 069 — Huawei CloudEngine / Nokia 7000 Series
--
-- Huawei (5 models): all verified HTTP 200 (2026-04-21).
--   Image CDN: ycict.net WordPress — established Huawei reseller with stable WP media uploads.
--   CE16808, CE6866-48S8CQ, CE8851-32CQ8DQ, NE40E-X8A: model-specific JPEGs.
--   S5735-L48T4X-A: uses S5735-L48T4X-A1 chassis photo (same physical form factor).
--
-- Nokia (2 models confirmed, 2 skipped):
--   7220 IXR-D3L: documentation.nokia.com official public CDN (no hotlink protection).
--   7750 SR-14s: telecomcauliffe.com WP CDN (Nokia 7750 SR series family shot).
--   7750 SR-1: nokia.com/sites/default/files/ enforces Referer hotlink protection → 403.
--   7220 IXR-H4: no public image found in Nokia SR Linux HTML documentation.

-- ── Huawei CloudEngine ────────────────────────────────────────────────────────

-- CE16808 — 16-slot CloudEngine 16800 data center core chassis
UPDATE switches
SET image_url        = 'https://www.ycict.net/wp-content/uploads/2023/09/Huawei-CloudEngine-16808-Switch-YCICT.jpg',
    product_page_url = COALESCE(product_page_url, 'https://e.huawei.com/en/products/switches/data-center-switches/ce16800'),
    assets_scraped_at = NOW()
WHERE model = 'CE16808'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'huawei');

-- CE6866-48S8CQ — 48×25G + 8×100G CloudEngine data center switch
UPDATE switches
SET image_url        = 'https://www.ycict.net/wp-content/uploads/2023/09/Huawei-CE6866-48S8CQ-P-.jpg',
    product_page_url = COALESCE(product_page_url, 'https://support.huawei.com/enterprise/en/switches/ce6866-48s8cq-p-pid-250725010'),
    assets_scraped_at = NOW()
WHERE model = 'CE6866-48S8CQ'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'huawei');

-- CE8851-32CQ8DQ — 32×100G + 8×400G CloudEngine 8800 series switch
UPDATE switches
SET image_url        = 'https://www.ycict.net/wp-content/uploads/2023/10/CE8851-32CQ8DQ-P-price.jpg',
    product_page_url = COALESCE(product_page_url, 'https://support.huawei.com/enterprise/en/switches/ce8851-32cq8dq-p-pid-250733150'),
    assets_scraped_at = NOW()
WHERE model = 'CE8851-32CQ8DQ'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'huawei');

-- NE40E-X8A — 8-slot NetEngine 40E carrier router chassis
UPDATE switches
SET image_url        = 'https://www.ycict.net/wp-content/uploads/2023/09/Huawei-NE40E-X8A-Router-YCICT-2.jpg',
    product_page_url = COALESCE(product_page_url, 'https://e.huawei.com/en/products/routers/ne40e'),
    assets_scraped_at = NOW()
WHERE model = 'NE40E-X8A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'huawei');

-- S5735-L48T4X-A — 48×1G + 4×10G campus switch
-- Image shows S5735-L48T4X-A1 variant (same physical chassis)
UPDATE switches
SET image_url        = 'https://www.ycict.net/wp-content/uploads/2023/09/Huawei-S5735-L48T4X-A1-new.jpg',
    product_page_url = COALESCE(product_page_url, 'https://e.huawei.com/en/products/enterprise-networking/switches/campus-switches/s5735-l'),
    assets_scraped_at = NOW()
WHERE model = 'S5735-L48T4X-A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'huawei');

-- ── Nokia ─────────────────────────────────────────────────────────────────────

-- 7220 IXR-D3L — SR Linux IP fabric switch/router (D-series)
-- Image: official Nokia SR Linux documentation CDN (no hotlink protection, public access).
-- Note: photo shows IXR-D2L and IXR-D3L side-by-side (Nokia product documentation).
UPDATE switches
SET image_url        = 'https://documentation.nokia.com/srlinux/SR_Linux_HTML_R21-11/Product_Overview/graphics/DL.png',
    product_page_url = COALESCE(product_page_url, 'https://www.nokia.com/data-center-networks/data-center-fabric/7220-interconnect-router/'),
    assets_scraped_at = NOW()
WHERE model = '7220 IXR-D3L'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nokia');

-- 7750 SR-14s — 14-slot Service Router chassis
-- Image: Nokia 7750 SR series family shot (includes SR-1/4/7/12/14s chassis).
UPDATE switches
SET image_url        = 'https://telecomcauliffe.com/wp-content/uploads/2023/10/Nokia-7750-Series-SR-Series_TELECOMCAULIFFE.png',
    product_page_url = COALESCE(product_page_url, 'https://www.nokia.com/ip-networks/7750-service-router/'),
    assets_scraped_at = NOW()
WHERE model = '7750 SR-14s'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nokia');
