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
Added ospf discovery
Confirmed on the mailing list that this does pick up new devices so should be good for merging.