-- Migration 073 — Cisco ASR 9000 Series + NCS 540 Series
--
-- All URLs verified HTTP 200 (2026-04-21).
--
-- ASR 9000 standalone chassis images:
--   ASR-9001/9901: networktigers.com Shopify CDN (stable versioned URLs).
--   ASR-9902/9903: tempestns.com WordPress CDN (official Tempest Networks,
--     authorized Cisco reseller; stable WP media uploads).
--   A9KV-V2-AC: networktigers.com Shopify CDN (ASR 9000v-V2 satellite shelf).
--
-- Note: ASR-9901-FC/9902-FC/9903-FC share the same chassis photo as base models.
--   A9KV-V2-DC-A and A9KV-V2-DC-E share chassis photo with A9KV-V2-AC.
--
-- NCS 540 Series (Cisco Network Convergence System 540):
--   All networktigers.com Shopify CDN (stable versioned URLs).
--   Note: SYS-A (AC) and SYS-D (DC) variants share the same chassis photo
--   as the hardware form factor is identical (only power supply differs).
--   N540X-16Z4G8Q2C-A shares image with N540X-16Z4G8Q2C-D.
--
-- Skipped (line cards/modules, no standalone chassis image):
--   A9903-20HG-PEC/A9903-8HG-PEC: Port Expansion Cards for ASR 9903 chassis.
--   ASR-9000V-* variants: no accessible public front-panel product photo found.
--   A9K-MPA-*, A9K-RSP*, NC55-*, NC57-*, C9600-LC-*, A99-*: all line cards.

-- ── Cisco ASR 9000 Series ─────────────────────────────────────────────────────

-- ASR-9001 — ASR 9000 1U fixed-port carrier aggregation router
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-ASR-9001_463x.progressive.jpg?v=1686353615',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9001-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9001'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ASR-9901 — ASR 9900 2U fixed-port high-capacity router (456Gbps, 42 ports)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-ASR-9901_463x.progressive.jpg?v=1728671163',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9901-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9901'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ASR-9901-FC — ASR 9901 with Fabric Card (same chassis as ASR-9901)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-ASR-9901_463x.progressive.jpg?v=1728671163',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9901-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9901-FC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ASR-9902 — ASR 9900 2U compact high-performance router (800Gbps, 2-slot)
UPDATE switches
SET image_url        = 'https://www.tempestns.com/wp-content/uploads/2023/04/Cisco-ASR9902-500x500.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9902-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9902'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ASR-9902-FC — ASR 9902 with Fabric Card (same chassis as ASR-9902)
UPDATE switches
SET image_url        = 'https://www.tempestns.com/wp-content/uploads/2023/04/Cisco-ASR9902-500x500.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9902-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9902-FC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ASR-9903 — ASR 9900 3U compact high-performance router (3.6Tbps, 3-slot)
UPDATE switches
SET image_url        = 'https://www.tempestns.com/wp-content/uploads/2023/04/Cisco-ASR9903-500x500.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9903-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9903'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ASR-9903-FC — ASR 9903 with Fabric Card (same chassis as ASR-9903)
UPDATE switches
SET image_url        = 'https://www.tempestns.com/wp-content/uploads/2023/04/Cisco-ASR9903-500x500.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/support/routers/asr-9903-router/model.html'),
    assets_scraped_at = NOW()
WHERE model = 'ASR-9903-FC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9KV-V2-AC — ASR 9000v-V2 satellite shelf router (44×1G + 4×10G, AC power)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9KV-V2-AC_cfd6b3b0-c581-4385-8cf1-615eb57922df_463x.progressive.jpg?v=1680526511',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/collateral/routers/asr-9000-series-aggregation-services-routers/data_sheet_c78-673744.html'),
    assets_scraped_at = NOW()
WHERE model = 'A9KV-V2-AC'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9KV-V2-DC-A — ASR 9000v-V2 DC power variant A (same chassis as A9KV-V2-AC)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9KV-V2-AC_cfd6b3b0-c581-4385-8cf1-615eb57922df_463x.progressive.jpg?v=1680526511',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/collateral/routers/asr-9000-series-aggregation-services-routers/data_sheet_c78-673744.html'),
    assets_scraped_at = NOW()
WHERE model = 'A9KV-V2-DC-A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- A9KV-V2-DC-E — ASR 9000v-V2 DC power variant E (same chassis as A9KV-V2-AC)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-A9KV-V2-AC_cfd6b3b0-c581-4385-8cf1-615eb57922df_463x.progressive.jpg?v=1680526511',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/collateral/routers/asr-9000-series-aggregation-services-routers/data_sheet_c78-673744.html'),
    assets_scraped_at = NOW()
WHERE model = 'A9KV-V2-DC-E'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── Cisco NCS 540 Series ─────────────────────────────────────────────────────
-- (NCS = Network Convergence System, carrier-grade edge/aggregation routers)

-- N540-28Z4C-SYS-A — NCS 540 28×10G SFP+ + 4×100G QSFP28 (AC power)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-N540-28Z4C-SYS-A_463x.progressive.jpg?v=1731492896',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-28Z4C-SYS-A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540-28Z4C-SYS-D — NCS 540 28×10G + 4×100G (DC power, same chassis as SYS-A)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-N540-28Z4C-SYS-A_463x.progressive.jpg?v=1731492896',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-28Z4C-SYS-D'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540-24Z8Q2C-SYS — NCS 540 24×10G SFP+ + 8×25G SFP28 + 2×100G QSFP28
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-N540-24Z8Q2C-SYS_1aeb54fb-0841-4c17-ac0f-d29efb5cb76c_463x.progressive.jpg?v=1680813998',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-24Z8Q2C-SYS'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540-12Z20G-SYS-A — NCS 540 20×1G SFP + 12×10G SFP+ (AC power)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-N540-12Z20G-SYS-D_463x.progressive.jpg?v=1763031847',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-12Z20G-SYS-A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540-12Z20G-SYS-D — NCS 540 20×1G SFP + 12×10G SFP+ (DC power)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/files/cisco-N540-12Z20G-SYS-D_463x.progressive.jpg?v=1763031847',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-12Z20G-SYS-D'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540-ACC-SYS — NCS 540 Access System (24×10G + 8×25G + 2×100G)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-N540-ACC-SYS_463x.progressive.jpg?v=1694423271',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540-ACC-SYS'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540X-16Z4G8Q2C-D — NCS 540X 16×10G + 4×1G + 8×25G + 2×100G (DC power)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-N540X-16Z4G8Q2C-D_463x.progressive.jpg?v=1686131427',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540X-16Z4G8Q2C-D'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- N540X-16Z4G8Q2C-A — NCS 540X 16×10G + 4×1G + 8×25G + 2×100G (AC power, same chassis)
UPDATE switches
SET image_url        = 'https://www.networktigers.com/cdn/shop/products/cisco-N540X-16Z4G8Q2C-D_463x.progressive.jpg?v=1686131427',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-540-series-routers/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'N540X-16Z4G8Q2C-A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');
