Never mind,


I've figured it out (sort of).



The correct line is: InetAddress nexthop =
ent.getIPAddress(IpRouteCollectorEntry.IP_ROUTE_NXTHOP);



Though I still can't find getIPAddress in any .java file but according
to
http://www.opennms.org/documentation/java-apidocs-snapshot/org/opennms/n
etmgt/provision/service/snmp/SnmpTableEntry.html

it is part of the SnmpTableEntry class and inherited from
org.opennms.netmgt.snmp.AbstractSnmpStore but there is no
AbstractSnmpStore.java anywhere that I can find so I'm still puzzled.



Cheers

AlanE





________________________________

From: Alan Evans
Sent: Wednesday, May 26, 2010 11:57 AM
To: 'opennms-devel@lists.sourceforge.net'
Subject: Mystified about getIPAddress in IpRouteTableEntry.java and
friends.



Hello opennms developers,



I am working on a fix for a bug I submitted:
http://bugzilla.opennms.org/show_bug.cgi?id=3773



I am modeling my fix on the way that linkd processes the VlanTable.



I have done most of the work but I can't get my modified
DbEventWriter.java to compile.



The problem line:                    InetAddress nexthop =
getIPAddress(ent.getInt32(IpRouteCollectorEntry.IP_ROUTE_NXTHOP));



The compile error:



/home/tacuser/opennms/opennms-services/src/main/java/org/opennms/netmgt/
linkd/DbEventWriter.java:[474,42] cannot find symbol

symbol  : method getIPAddress(java.lang.Integer)

location: class org.opennms.netmgt.linkd.DbEventWriter



I cannot see any place that defines the getIPAddress method. I assumed
it was supplied by java.net.InetAddress but this doesn't appear to be
the case.



Can someone explain where this method comes from? I've been scratching
my head for a couple of hours now and I just can't see it.



Many thanks

AlanE.

------------------------------------------------------------------------------

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to