Ifindex is not saved in bridge discovery

Description

the ifindex is not saved into
the database table bridgebridgelink, bridgemaclink and stp link.

I checked a test were these information are available on the snmp agent, also walked by the opennms NodeBRodgeDiscovery but in any case they are not saved properly into database. I guess this is for the "Topology stuff" I mean that the information is not saved immediatly but it must be parsed by a Topology class.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Antonio Russo October 21, 2015 at 11:12 AM

Merged in Foundation

MacBook-Pro-di-Antonio-Russo:opennms antonio$ git merge features/foundation-enlinkd
Merge made by the 'recursive' strategy.
.../src/main/java/org/opennms/netmgt/enlinkd/EnhancedLinkdService.java | 5 ++
.../src/main/java/org/opennms/netmgt/enlinkd/EnhancedLinkdServiceImpl.java | 104 +++++++++++++++++++++--------------- .../src/main/java/org/opennms/netmgt/enlinkd/NodeDiscoveryBridge.java | 19 ++++---
opennms-services/src/test/java/org/opennms/netmgt/enlinkd/Nms4930EnTest.java | 52 ++++++++++++++++--
.../src/test/java/org/opennms/netmgt/nb/Nms4930NetworkBuilder.java | 24 +++++++++
5 files changed, 151 insertions, 53 deletions
MacBook-Pro-di-Antonio-Russo:opennms antonio$
MacBook-Pro-di-Antonio-Russo:opennms antonio$
MacBook-Pro-di-Antonio-Russo:opennms antonio$ git push
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 303 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
To git@github.com:OpenNMS/opennms.git
cf01d74..3b2168e foundation -> foundation

Antonio Russo October 21, 2015 at 5:43 AM

Fixed in features/foundation-enlinkd

MacBook-Pro-di-Antonio-Russo:opennms antonio$ git commit -a
[features/foundation-enlinkd 2a9b101] Fix : Ifindex is not saved in bridge discovery
5 files changed, 151 insertions, 53 deletions
MacBook-Pro-di-Antonio-Russo:opennms antonio$ git log
commit 2a9b101ac7c3b894af93062d61178b2e0e8d5717
Author: Antonio <rssntn67@yahoo.it>
Date: Wed Oct 21 11:40:41 2015 +0200

Fix : Ifindex is not saved in bridge discovery

The ifindex is properly saved.
Also the vlan is saved if not null.
Enhanced the test to check that ifindex is properly persisted

MacBook-Pro-di-Antonio-Russo:opennms antonio$ git push
Counting objects: 139, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (22/22), 4.69 KiB | 0 bytes/s, done.
Total 22 (delta 10), reused 0 (delta 0)
To git@github.com:OpenNMS/opennms.git
6d05bbb..2a9b101 features/foundation-enlinkd -> features/foundation-enlinkd

Fixed

Details

Assignee

Reporter

Components

Priority

PagerDuty

Created October 20, 2015 at 6:56 AM
Updated January 27, 2017 at 6:06 PM
Resolved October 21, 2015 at 11:12 AM