Custom Topology Mapping
Summary: Justin Lanoue initiated a discussion about reverse engineering the new topology mapping features to create custom connections and display instances that connect them, including using throughput modules. Justin Lanoue shared the structure of potential topology mappings and expressed difficulties due to lack of documentation. Later, they found a solution using types like "fromInstanceEdgeType" set to "Interface" and "instanceEdgeType" to variants like "CDP" or "Bridge", and also posited on using metrics integrated via a modloader. They suggested specific requirements and sources for utilizing the Edge Status feature.
Good morning,
Has anyone been able to reverse engineer the new topology mapping features?
I want to be able to create my own connection and show the "Instances" that connect the 2 and maybe even add the new throughput modules to show extra data.
I see the output is something like:
edges << [
"type": "",
"from": "",
"to": "",
"displayType": "",
"fromInstance": "",
"toInstance": "",
"fromInstanceEdgeType": "",
"toInstanceEdgeType": "",
"instanceEdgeType": "",
"fromHealthData": [
"Utilization": [
"Tx": [
"SNMP_Network_Interfaces": "InUtilizationPercent"
],
"Rx": [
"SNMP_Network_Interfaces": "OutUtilizationPercent"
]
],
"Packet Loss": [
"Tx": [
"SNMP_Network_Interfaces": "InDiscardPercent"
],
"Rx": [
"SNMP_Network_Interfaces": "OutDiscardPercent"
]
],
"Throughput": [
"Tx": [
"SNMP_Network_Interfaces": "InMbps"
],
"Rx": [
"SNMP_Network_Interfaces": "OutMbps"
]
]
],
"metaData": [
"vlans": "1"
],
"metricReportingNode": "From"
]
But there is no documentation / training to explain how this works or to recreate it.
I've been able to map a resource to resource and even an instance to instance but i've not been able to click onto the link and show the "connection details" like it does for Network Interfaces for any of my custom topologies.
Let me know if anyone has figured this out or if LM has any input on this information.
Thanks!
Justin Lanoue
OP5 months agoI was able to get this to work actually with the following types:
"from": "ResourceERI",
"to": ""ResourceERI,
"type": ""type": ""Network,",
"displayType": ""type": ""Network,",
"fromInstance": "InstanceERI",
"toInstance": "InstanceERI",
"fromInstanceEdgeType": "Interface",
"toInstanceEdgeType": "Interface",
"instanceEdgeType": "CDP",
Seems to have broken when I changed the instanceEdgeType to anything other than what I tested CDP, Bridge, LLDP
I'm guessing if I changed the type to Routing and instanceTypes to "Endpoints" and then instanceEdgeType to "OSPF Neighbor"," BGP Peer" these would work.
As for the metrics, I'm going to assume this is built into their modloader via "lmtopoSnmp = modLoader.load("lm.topo.snmp", "0")" which grabs SNMP metrics like:
def ifTable = lmtopoSnmp.extractInterfaces(host, null, interfacesTimeout, debug)
Documentation states:
Requirements for Using Edge Status
To use the Edge Status feature, you need the following:
TopoSources
Cisco_Meraki_Topology
Aruba_EdgeConnect_SDWAN_Topology
PaloAlto_PrismaSDWAN_Topology
Fortinet_FortiGate_SDWAN
VMware_SDWAN_Topology
Cisco_Catalyst_SDWAN_Topology
Networking_L2_snmpSwitch
DataSource
Cisco_Meraki_SecurityApplianceTunnels
Justin Lanoue
OP5 months ago · EditedGot it to work with showing the below but no connection details still.