Added autodiscovery for ospf #772

Merged
merged 2 commits into from Apr 12, 2015

Projects

None yet

2 participants

@laf
Member
laf commented Apr 11, 2015

We already have a config option to turn this on but I can't find any code that says it would actually perform a discovery. hopefully I've not just wasted my time :)

$config['autodiscovery']['ospf'] = TRUE;

ospf is done in polling rather than discovery like bgp. So, I've added a new section to discovery/discovery-protocols.inc.php that grabs the already existing data from the mysql table ospf_nbrs and does a reverse dns lookup on the nbrIP and passes that to the normal discovery function.

Works for me on a gns3 test lab.

It doesn't add any data to the links table for the map as I couldn't see a correlation between the tables but also, the remote port ids won't get discovered until a poll.

Resolves issue #754

@laf
Member
laf commented Apr 11, 2015

Confirmed on the mailing list that this does pick up new devices so should be good for merging.

@f0o f0o merged commit 2af5d0e into librenms:master Apr 12, 2015

1 check passed

Scrutinizer 5 new issues
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment