Welcome, Guest. Please login or register.

Author Topic: feature for NeDi default Topology Map  (Read 1910 times)


  • Newbie
  • *
  • Posts: 11
    • View Profile
feature for NeDi default Topology Map
« on: October 15, 2015, 01:43:41 PM »

Because of our requirements I have changed the Topology-Map, primary the d3.js / json part.
Remo I think you can help us to improove the code. It does work, but I think the implementation in the libmap.php can be better.
It's not finished yet. I'm open for suggestions and feedbacks .

The code is in the alpha phase.
Oh yes... and is coded for the NeDi version 1.5.

I didn't touch the original functions in the libmap.php file.
I copied it and created two new functions with my changes.
When you call the Topolgy->D3jsmap it creates a new json map file called "map3js_$username.json" instaed of "map_$username.json"



please backup the original file first.
like that \hmtl\inc\libmap.php.backup

copy the two files on your nedi HTML folder.

edit nedi.conf and put this line on GUI Settings.
module    Topology   D3jsmap         paint   net


1. Filter:
I haven't change anything here.

2. Main
In the d3js map I have only changed the D3js code for my expected results.
I have focused on the Output from the Devices and Nodes(nodes without interface).

3. Layout
Metric: you can set the Charge of the forcelayout                 // lal default is 120, 120/4=30     
Length: you can change the link distance between devices or nodes    // len default default is 50, -3*50=-150

4. Show
If Name: show the linked interface between the two devices
Device IP: show the device IP expected in nedi

Room: show the room from the snmp string
Rack: show the rack from the snmp string

When you select both Room and Rack then it show the complete snmp string

To better indentifying the devices on the same building or room, they have the same font color.

Mode: show the device contact
Mode: show the device model

Go to print mode and then position your devices to print as PDF... or so.

best regards
« Last Edit: October 15, 2015, 01:53:31 PM by titanium »


  • Administrator
  • Hero Member
  • *****
  • Posts: 2542
    • View Profile
    • NeDi
Re: feature for NeDi default Topology Map
« Reply #1 on: October 16, 2015, 09:38:12 AM »
Looks pretty darn good already :)

Yes this will be beautifully in line with my additions to the png maps: layer mode and filtering by neighbor hops...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!


  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: feature for NeDi default Topology Map
« Reply #2 on: October 18, 2017, 09:19:59 AM »
This module is just awesome! Thank you very much!

Is there any chance to make a port for NeDi 1.6? Also, just a quick observation - it doesn't indicate multiple ports on a trunk (LAG) link. Is there a way to fix that?


  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: feature for NeDi default Topology Map
« Reply #3 on: October 18, 2017, 11:10:21 AM »
Hi 2papabear

Thx, It's been a while since I wrote this plugin.
NeDi has improved a lot since then. I will check the plugin and make it compatible to NeDi 1.6 and for features relases. 

To display multiple links was a challenge for me. You can see that on the pictures...
I will try to fix the problem with multiple links / trunk "LAG" links.  Maybe I need to do that in different way, than now.