Search in sources :

Example 1 with BridgeMacLinkHash

use of org.opennms.netmgt.model.topology.BridgeMacLinkHash in project opennms by OpenNMS.

the class EnhancedLinkdServiceImpl method store.

@Override
public void store(int nodeId, List<BridgeMacLink> bft) {
    Map<BridgeMacLinkHash, BridgeMacLink> effectiveBFT = new HashMap<BridgeMacLinkHash, BridgeMacLink>();
    for (BridgeMacLink link : bft) {
        OnmsNode node = new OnmsNode();
        node.setId(nodeId);
        link.setNode(node);
        effectiveBFT.put(new BridgeMacLinkHash(link), link);
    }
    m_nodetoBroadcastDomainMap.put(nodeId, new ArrayList<BridgeMacLink>(effectiveBFT.values()));
}
Also used : OnmsNode(org.opennms.netmgt.model.OnmsNode) HashMap(java.util.HashMap) BridgeMacLinkHash(org.opennms.netmgt.model.topology.BridgeMacLinkHash) BridgeMacLink(org.opennms.netmgt.model.BridgeMacLink)

Aggregations

HashMap (java.util.HashMap)1 BridgeMacLink (org.opennms.netmgt.model.BridgeMacLink)1 OnmsNode (org.opennms.netmgt.model.OnmsNode)1 BridgeMacLinkHash (org.opennms.netmgt.model.topology.BridgeMacLinkHash)1