| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package l2topology |
| 4 | |
| 5 | import "net/netip" |
| 6 | |
| 7 | // NodeTopologyEntity mirrors the minimum node fields used by Enlinkd node topology logic. |
| 8 | type NodeTopologyEntity struct { |
| 9 | ID int |
| 10 | Label string |
| 11 | SysObject string |
| 12 | SysName string |
| 13 | Address netip.Addr |
| 14 | } |
| 15 | |
| 16 | // IPInterfaceTopologyEntity mirrors the minimum IP interface fields used by Enlinkd node topology logic. |
| 17 | type IPInterfaceTopologyEntity struct { |
| 18 | ID int |
| 19 | NodeID int |
| 20 | IPAddress netip.Addr |
| 21 | NetMask netip.Addr |
| 22 | IsManaged bool |
| 23 | IsSnmpPrimary bool |
| 24 | IfIndex int |
| 25 | SnmpInterfaceID int |
| 26 | } |
| 27 | |
| 28 | // SnmpInterfaceTopologyEntity mirrors the minimum SNMP interface fields used by Enlinkd node topology logic. |
| 29 | type SnmpInterfaceTopologyEntity struct { |
| 30 | ID int |
| 31 | NodeID int |
| 32 | IfIndex int |
| 33 | IfName string |
| 34 | IfDescr string |
| 35 | } |