Kaynağa Gözat

fix(demo): show two LLDP neighbours on the demo switch port (#2182) (#2281)

Nacho 3 gün önce
ebeveyn
işleme
76f9c6e316
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      app/src/components/routers/routerExtras.ts

+ 7 - 1
app/src/components/routers/routerExtras.ts

@@ -263,7 +263,13 @@ export const routerExtras: Record<string, RouterExtras> = {
       { id: 'wan', label: 'WAN', up: true, speed: '1 Gbps', connectedTo: 'Uplink → Gateway', detail: 'Gateway · LAN 1 (192.168.8.1)' },
       { id: 'lan1', label: 'LAN 1', up: true, speed: '1 Gbps', connectedTo: 'PS5', detail: '192.168.8.31 · cable' },
       { id: 'lan2', label: 'LAN 2', up: false },
-      { id: 'lan3', label: 'LAN 3', up: true, speed: '1 Gbps', connectedTo: 'Switch GS308E', detail: '192.168.8.13 · LLDP · uplink ge5' },
+      { id: 'lan3', label: 'LAN 3', up: true, speed: '1 Gbps', connectedTo: 'Switch GS308E', detail: '192.168.8.13 · LLDP · uplink ge5',
+        // #2182: el switch anuncia por dos de sus bocas; la tarjeta nombra el
+        // par principal y el hover lista los dos.
+        lldpPeers: [
+          { chassis: 'GS308E', mgmt: '192.168.8.13', caps: 'Bridge', portDesc: 'ge5' },
+          { chassis: 'GS308E', mgmt: '192.168.8.13', caps: 'Bridge', portDesc: 'ge6' },
+        ] },
     ],
   },
   estudio: {