| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package snmptopology |
| 4 | |
| 5 | import "github.com/netdata/netdata/go/plugins/pkg/funcapi" |
| 6 | |
| 7 | // Compile-time interface check. |
| 8 | var _ funcapi.MethodHandler = (*funcTopology)(nil) |
| 9 | |
| 10 | type funcTopology struct{} |
| 11 | |
| 12 | const topologyMethodID = "topology:snmp" |
| 13 | |
| 14 | const ( |
| 15 | topologyParamNodesIdentity = "nodes_identity" |
| 16 | topologyParamMapType = "map_type" |
| 17 | topologyParamInferenceStrategy = "inference_strategy" |
| 18 | topologyParamManagedDeviceFocus = "managed_snmp_device_focus" |
| 19 | topologyParamDepth = "depth" |
| 20 | |
| 21 | topologyNodesIdentityIP = "ip" |
| 22 | topologyNodesIdentityMAC = "mac" |
| 23 | |
| 24 | topologyMapTypeLLDPCDPManaged = "lldp_cdp_managed" |
| 25 | topologyMapTypeHighConfidenceInferred = "high_confidence_inferred" |
| 26 | topologyMapTypeAllDevicesLowConfidence = "all_devices_low_confidence" |
| 27 | topologyInferenceStrategyFDBMinimumKnowledge = "fdb_minimum_knowledge" |
| 28 | topologyInferenceStrategySTPParentTree = "stp_parent_tree" |
| 29 | topologyInferenceStrategyFDBPairwise = "fdb_pairwise_minimum_knowledge" |
| 30 | topologyInferenceStrategySTPFDBCorrelated = "stp_fdb_correlated" |
| 31 | topologyInferenceStrategyCDPFDBHybrid = "cdp_fdb_hybrid" |
| 32 | topologyManagedFocusAllDevices = "all_devices" |
| 33 | topologyManagedFocusIPPrefix = "ip:" |
| 34 | topologyDepthAll = "all" |
| 35 | topologyDepthMin = 0 |
| 36 | topologyDepthMax = 10 |
| 37 | topologyDepthAllInternal = -1 |
| 38 | ) |