Commit 97e4e9f
committed
Fix partial-connection indicator leaking across stack members
applyPortStatus() used a global querySelectorAll which matched the same
stylename (e.g. gigabitethernet0-35) in every chassis panel simultaneously.
For a virtual chassis, GigabitEthernet1/0/35 and GigabitEthernet2/0/35 both
derive the same stylename, so a partially-connected port on one member
incorrectly highlighted the same port position on all other members.
Fix: add a device field to each portData entry (the ports_chassis key) and
scope querySelectorAll to the matching #dv-svg-wrapper-{device} div, falling
back to a global search only when the wrapper is not found.1 parent 5d1f39e commit 97e4e9f
2 files changed
Lines changed: 10 additions & 2 deletions
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments