| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package l2topology |
| 4 | |
| 5 | type builtAdjacencyLink struct { |
| 6 | adj Adjacency |
| 7 | protocol string |
| 8 | link Link |
| 9 | } |
| 10 | |
| 11 | type pairedLinkAccumulator struct { |
| 12 | all []*builtAdjacencyLink |
| 13 | } |
| 14 | |
| 15 | type projectedLinks struct { |
| 16 | links []Link |
| 17 | lldp int |
| 18 | cdp int |
| 19 | bidirectionalCount int |
| 20 | unidirectionalCount int |
| 21 | } |
| 22 | |
| 23 | type bridgePortRef struct { |
| 24 | deviceID string |
| 25 | ifIndex int |
| 26 | ifName string |
| 27 | bridgePort string |
| 28 | vlanID string |
| 29 | } |