-- Migration 082 — Cisco ASR 9000 Line Cards (A9K-*)
--
-- All URLs verified HTTP 200 (2026-04-21).
--
-- Primary source: networktigers.com Shopify CDN (cdn/shop/files/ and cdn/shop/products/)
--   Verified image/jpeg, 14–31KB per card. networktigers.com is an authorised Cisco
--   refurbished hardware reseller with stable versioned Shopify CDN URLs.
--
-- Secondary source: router-switch.com Magento CDN (/media/catalog/product/c/i/)
--   Used for A9K-4T-L, A9K-4X100GE-FC, A9K-8T-L (networktigers does not stock these).
--   router-switch.com returns 1648-byte placeholder JPEGs for unknown models;
--   only models with a real 800×800 product photo were used.
--
-- A9K-4HG-FLEX-SE: same physical hardware as A9K-4HG-FLEX-TR (TR/SE are
--   licence variants, not hardware differences). Using TR image.
--
-- Still pending after exhaustive search:
--   A9K-4HG-FLEX-X-FC, A9K-4HG-FLEX-X-SE: X-variant not stocked on networktigers.
--   A9K-4X100GE (base model): 1648-byte placeholder on router-switch.com.
--   A9K-8HG-FLEX-FC/SE/TR, A9K-8HG-FLEX-X-FC/X-SE/X-TR: not stocked anywhere.
--   A9K-8T16GE-SE, A9K-8T16GE-TR: placeholder only.
--   A9K-16T-B/E/L: not found (404 on networktigers, placeholder on router-switch.com).

-- ── A9K 4-Port 10G + 100G Modular Line Cards ────────────────────────────────

-- A9K-4HG-FLEX-TR — 4-port 100G QSFP28 High-Speed LC (transport feature set)
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-TR'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-4HG-FLEX-SE — 4-port 100G QSFP28 High-Speed LC (scale-enhanced; same hardware as TR)
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-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K 4-Port 10G Line Cards ─────────────────────────────────────────────────

-- A9K-4T-B — 4-port 10G SFP+ line card (base feature set)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-4T-B_463x.progressive.jpg?v=1720437176',
    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-4T-B'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-4T-E — 4-port 10G SFP+ line card (enhanced feature set)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-4T-E_463x.progressive.jpg?v=1761208810',
    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-4T-E'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-4T-L — 4-port 10G SFP+ line card (large feature set)
UPDATE switches
SET image_url        = 'https://www.router-switch.com/media/catalog/product/c/i/cisco-a9k-4t-l.jpg',
    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-4T-L'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K 4-Port 10G + 16×1G Combo Line Cards ──────────────────────────────────

-- A9K-4T16GE-SE — 4×10G SFP+ + 16×1G SFP combo line card (scale-enhanced)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-4T16GE-SE_463x.progressive.jpg?v=1689195628',
    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-4T16GE-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-4T16GE-TR — 4×10G SFP+ + 16×1G SFP combo line card (transport)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9K-4T16GE-TR_afdf0ba0-c801-4685-a746-2f09949644e0_463x.progressive.jpg?v=1680536843',
    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-4T16GE-TR'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K 4-Port 100G Line Cards ────────────────────────────────────────────────

-- A9K-4X100GE-FC — 4-port 100G CFP2 line card (fabric card feature set)
UPDATE switches
SET image_url        = 'https://www.router-switch.com/media/catalog/product/c/i/cisco-a9k-4x100ge-fc.jpg',
    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-FC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-4X100GE-SE — 4-port 100G CFP2 line card (scale-enhanced)
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-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-4X100GE-TR — 4-port 100G CFP2 line card (transport)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9K-4X100GE-TR_463x.progressive.jpg?v=1688719041',
    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-TR'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K 8-Port 10G Line Cards ─────────────────────────────────────────────────

-- A9K-8T-B — 8-port 10G SFP+ line card (base feature set)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-8T-B_463x.progressive.jpg?v=1720437500',
    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-8T-B'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-8T-E — 8-port 10G SFP+ line card (enhanced feature set)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-8T-E_463x.progressive.jpg?v=1686351009',
    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-8T-E'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-8T-L — 8-port 10G SFP+ line card (large feature set)
UPDATE switches
SET image_url        = 'https://www.router-switch.com/media/catalog/product/c/i/cisco-a9k-8t-l.jpg',
    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-8T-L'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── A9K Modular Line Cards ────────────────────────────────────────────────────

-- A9K-MOD400-SE — ASR 9000 400G modular line card (scale-enhanced)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9K-MOD400-SE_7bcc2214-226f-4bb9-a348-5b5c1915394d_463x.progressive.jpg?v=1680525944',
    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-MOD400-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-MOD400-TR — ASR 9000 400G modular line card (transport)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9K-MOD400-TR_152ea4c1-ef4e-4eee-b404-51eb30f57b4c_463x.progressive.jpg?v=1680526010',
    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-MOD400-TR'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-MOD80-SE — ASR 9000 80G modular line card (scale-enhanced)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-MOD80-SE_75697d40-34d5-434d-9447-152629a049ff_463x.progressive.jpg?v=1692718230',
    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-MOD80-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9K-MOD80-TR — ASR 9000 80G modular line card (transport)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-A9K-MOD80-TR_a2e19e82-0a27-4cfb-b1ed-42438f6f02f1_463x.progressive.jpg?v=1739375213',
    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-MOD80-TR'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');
