From 892da2bcf5276d713a7efee0a3aacddb2cfb25c7 Mon Sep 17 00:00:00 2001 From: Rene Fichtmueller Date: Tue, 21 Apr 2026 00:49:32 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Cisco=20line=20card=20URL=20mapping=20(8?= =?UTF-8?q?800/84/86=20=E2=86=92=208000=20family=20page,=20skip=20ASR9K=20?= =?UTF-8?q?logo-only)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/scraper/src/scrapers/switch-image-fetcher.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/scraper/src/scrapers/switch-image-fetcher.ts b/packages/scraper/src/scrapers/switch-image-fetcher.ts index 0b8885c..b206318 100644 --- a/packages/scraper/src/scrapers/switch-image-fetcher.ts +++ b/packages/scraper/src/scrapers/switch-image-fetcher.ts @@ -52,11 +52,15 @@ function buildCiscoUrl(model: string): string | null { const slug = m.toLowerCase().replace(/[^a-z0-9]/g, "-"); return `https://www.cisco.com/c/en/us/products/switches/catalyst-${slug}/index.html`; } - // Cisco 8000 SP series: 8101-32FH, 8202-32FH, 8608 - // Cisco no longer has individual 8000 model pages — use the family page instead + // Cisco 8000 SP series chassis: 8101-32FH, 8202-32FH, 8608 if (/^8[0-9]{3}/.test(m)) { return `https://www.cisco.com/site/us/en/products/networking/sdwan-routers/8000-series/index.html`; } + // Cisco 8800 line cards (88-LC0-*, 84-MPA-*, 86-MPA-*) → same 8000 family page + if (/^(88|84|86)-/.test(m)) { + return `https://www.cisco.com/site/us/en/products/networking/sdwan-routers/8000-series/index.html`; + } + // ASR 9000 / A900 line cards only return the Cisco logo as og:image — skip return null; }