dana-i2cat/opennaas — pull request #71 by adrian-rosello (2012-03-21 17:00:22+00:00)
Title: Bug ospf in network.

As said in another commits, the ospf capabiltiy for network resource introduce the necessary actions of ospf-for-router in the queues of all routers belonging to it. So, we have to search the ospf and queue capabilities of every router to execute this action.

The function router.getCapability(information) will return true only if the version, name and type is the same as the user the ones set by the user at the resource descriptor. So, if he wants to load the ospf capability, but he just indicated another name (for example: "OSPF for router", "OSPF-router", etc) he won't be able to activate OSPF in the network, because there's a capability "ospf" for router, but it has a different name.

The solution is to look at the capabity by its type.

Another point is that areaConfig.setOSPFArea(ospfArea) was missing.