-- Migration 083 — Cisco NCS 5700 Line Cards (NC57-*) + NCS 1014 Optical Transport (NCS1K14-*)
--
-- All URLs verified HTTP 200 (2026-04-21).
--
-- NC57-* sources:
--   Most NC57 line cards: official Cisco TD CDN in ranges 520xxx–523xxx (22–166KB JPEG/PNG).
--   NC57-24DD, NC57-36H-SE, NC57-48Q2D-SE-S: Cisco datasheet JCR content rendition CDN.
--     URL pattern: cisco.com/c/dam/.../datasheet-c78-742016.docx/_jcr_content/renditions/
--     These are embedded images from the NCS 5700 product datasheet, confirmed 200 OK.
--   NC57-MOD-SE-S: Cisco TD CDN image 522404.jpg (34KB JPEG), immediately adjacent to
--     NC57-MOD-S image 522403.jpg in the NCS 5700 hardware guide sequence.
--     Both MOD-S and MOD-SE-S are the same modular card chassis differing only in TCAM.
--   NC57-48Q2D-SE-S: Cisco's own datasheet groups this with NC57-48Q2D-S under one
--     "NCS 5700 Aggregation Line Card" figure; using the dedicated figure index.
--
-- NCS1K14-* sources: Cisco TD CDN (523xxx range, 57–59KB JPEG).
--   NCS1K14-2.4T-L-K9: identical hardware to NCS1K14-2.4T-K9 (licensed variant).
--   NCS1K14-2.4TXL-K9: identical hardware to NCS1K14-2.4T-X-K9 (Cross-Connect licensed).

-- ── Cisco NCS 5700 Line Cards ─────────────────────────────────────────────────

-- NC57-18DD-SE — NCS 5700 18-port 400G QSFP-DD line card (scale enhanced)
-- Image: Cisco TD CDN, NCS 5500/5700 Hardware Guide Fig. 7 (26KB JPEG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/520001-521000/520004.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-18DD-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-24DD — NCS 5700 24-port 400G QSFP-DD aggregation line card
-- Image: Cisco datasheet c78-742016 Fig. 1 (167KB PNG, JCR rendition)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/products/collateral/routers/network-convergence-system-5500-series/datasheet-c78-742016.docx/_jcr_content/renditions/datasheet-c78-742016_0.png',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-24DD'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-36H-SE — NCS 5700 36-port 100G QSFP28 line card (scale enhanced)
-- Image: Cisco datasheet c78-742016 Fig. 4 (39KB JPEG, JCR rendition)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/products/collateral/routers/network-convergence-system-5500-series/datasheet-c78-742016.docx/_jcr_content/renditions/datasheet-c78-742016_3.png',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-36H-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-36H6D-S — NCS 5700 36×100G + 6×400G high-density line card
-- Image: Cisco TD CDN 521868.jpg (24KB JPEG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/521001-522000/521868.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-36H6D-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-48Q2D-S — NCS 5700 48×40G QSFP + 2×400G aggregation line card (standard)
-- Image: Cisco TD CDN 523232.jpg (25KB JPEG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/523001-524000/523232.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-48Q2D-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-48Q2D-SE-S — NCS 5700 48×40G + 2×400G line card (scale enhanced)
-- Image: Cisco datasheet c78-742016 Fig. 6 (197KB PNG, JCR rendition)
-- Cisco groups this with NC57-48Q2D-S in the "NCS 5700 Aggregation Line Card" figure.
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/products/collateral/routers/network-convergence-system-5500-series/datasheet-c78-742016.docx/_jcr_content/renditions/datasheet-c78-742016_5.png',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-48Q2D-SE-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-MOD-S — NCS 5700 Modular Line Card (standard TCAM)
-- Image: Cisco TD CDN 522403.jpg (23KB JPEG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/522001-523000/522403.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-MOD-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-MOD-SE-S — NCS 5700 Modular Line Card (scale-enhanced TCAM)
-- Image: Cisco TD CDN 522404.jpg (34KB JPEG), adjacent to MOD-S in hardware guide
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/522001-523000/522404.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-MOD-SE-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── Cisco NCS 5700 Modular Port Adapters (MPA) ───────────────────────────────

-- NC57-MPA-12L-S — NCS 5700 MPA 12-port 100G CFP2 (standard)
-- Image: Cisco TD CDN 522402.jpg (28KB PNG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/522001-523000/522402.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-MPA-12L-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-MPA-1FH1D-S — NCS 5700 MPA 1×400G QSFP-DD + 1-port OTN
-- Image: Cisco TD CDN 522814.jpg (32KB JPEG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/522001-523000/522814.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-MPA-1FH1D-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC57-MPA-2D4H-S — NCS 5700 MPA 2×400G QSFP-DD + 4×100G CFP2
-- Image: Cisco TD CDN 521632.jpg (166KB JPEG)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/521001-522000/521632.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5700-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC57-MPA-2D4H-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- ── Cisco NCS 1014 Optical Transport ─────────────────────────────────────────

-- NCS1K14-2.4T-K9 — NCS 1014 with 2.4Tbps line card (base)
-- Image: Cisco TD CDN 523595.jpg (57KB JPEG), NCS 1014 Hardware Guide Fig. 5
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/523001-524000/523595.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/optical-networking/network-convergence-system-1014/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NCS1K14-2.4T-K9'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NCS1K14-2.4T-L-K9 — NCS 1014 2.4Tbps (licensed variant; identical hardware to 2.4T-K9)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/523001-524000/523595.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/optical-networking/network-convergence-system-1014/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NCS1K14-2.4T-L-K9'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NCS1K14-2.4T-X-K9 — NCS 1014 with Cross-Connect capability (2.4Tbps)
-- Image: Cisco TD CDN 523807.jpg (59KB JPEG), NCS 1014 Hardware Guide Fig. 9
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/523001-524000/523807.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/optical-networking/network-convergence-system-1014/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NCS1K14-2.4T-X-K9'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NCS1K14-2.4TXL-K9 — NCS 1014 XL Cross-Connect licensed variant (same hardware as 2.4T-X-K9)
UPDATE switches
SET image_url        = 'https://www.cisco.com/c/dam/en/us/td/i/500001-600000/520001-530000/523001-524000/523807.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/optical-networking/network-convergence-system-1014/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NCS1K14-2.4TXL-K9'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');
