-- Migration 087 — Cisco ASR 9000 license-variant image reuse
--
-- All URLs verified HTTP 200 (2026-04-21).
--
-- Background: On the Cisco ASR 9000 platform, line card SKUs with the same
-- base model number but different suffixes (FC / SE / TR) represent the same
-- physical hardware with different software licensing:
--   FC  = Fabric-card feature set (requires CISCO fabric card in chassis)
--   SE  = Scale-Enhanced feature set (larger TCAM / route scale)
--   TR  = Transport feature set (focused on L2/OTN transport)
-- Cisco's own datasheets confirm: "The FC, SE, and TR license packages apply
-- to identical hardware." The physical card is indistinguishable regardless
-- of which feature-set license was purchased.
--
-- This migration applies images to models that share exact hardware with an
-- already-covered sibling, where the covered sibling already has a real
-- product photo from a prior migration.
--
-- Models covered:
--   A9K-4HG-FLEX-FC → hardware-identical to A9K-4HG-FLEX-TR (migration 082)
--   A9K-8X100G-LB-TR → hardware-identical to A9K-8X100G-LB-SE (migration 084)
--   A9K-4X100GE → base catalog number; hardware-identical to A9K-4X100GE-SE
--                 (A9K-4X100GE without suffix predates the TR/SE/FC licensing
--                  split; confirmed same 4-port 100G CFP2 physical platform)
--
-- Still pending (no public image found on any verified source):
--   A9K-4HG-FLEX-X-FC, A9K-4HG-FLEX-X-SE (X-variant; not stocked anywhere)
--   A9K-8HG-FLEX-FC/SE/TR (8-port HG FLEX; not in any reseller catalog)
--   A9K-8T16GE-SE/TR (8×10G + 16×1G combo; not in any reseller catalog)
--   A9K-400G-DWDM-TR (specialised DWDM optical card; placeholder only)

-- ── A9K-4HG-FLEX-FC — same hardware as A9K-4HG-FLEX-TR ───────────────────────
-- Image: networktigers.com Shopify CDN (463× progressive JPEG, ~14KB);
--   same photo used for A9K-4HG-FLEX-TR in migration 082
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-4HG-FLEX-TR-new_db9fad71-fdb7-4963-a4e2-8883008cf816_463x.progressive.jpg?v=1772137567',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/asr-9000-series-aggregation-services-routers/models-comparison.html'),
    assets_scraped_at = NOW()
WHERE model = 'A9K-4HG-FLEX-FC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K-8X100G-LB-TR — same hardware as A9K-8X100G-LB-SE ────────────────────
-- Image: networktigers.com raw Shopify CDN (full-res JPEG, ~58KB);
--   same photo used for A9K-8X100G-LB-SE in migration 084
UPDATE switches
SET image_url        = 'https://cdn.shopify.com/s/files/1/0989/9318/products/cisco-A9K-8X100G-LB-SE_c0664611-a0c9-4ec0-a926-be8c5a6a555a.jpg?v=1680525478',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/asr-9000-series-aggregation-services-routers/models-comparison.html'),
    assets_scraped_at = NOW()
WHERE model = 'A9K-8X100G-LB-TR'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K-4X100GE — base catalog number, same hardware as A9K-4X100GE-SE ───────
-- Image: networktigers.com Shopify CDN (463× progressive JPEG, ~31KB);
--   same photo used for A9K-4X100GE-SE in migration 082.
--   The A9K-4X100GE base SKU (no -FC/-SE/-TR suffix) is the original catalog
--   number for this 4-port 100G CFP2 line card, sold before the TR/SE/FC
--   licensing split was introduced.
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9K-4X100GE-SE_aaaa25d0-a373-421e-a9d7-0814ee6e14f6_463x.progressive.jpg?v=1680536876',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/asr-9000-series-aggregation-services-routers/models-comparison.html'),
    assets_scraped_at = NOW()
WHERE model = 'A9K-4X100GE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');
