Include/Exclude range

Description

Dear support,

I've readed here: http://www.opennms.org/wiki/Discovery "There is no "specific" version of the exclude tag - if you want to exclude a specific IP address use an exclude-range where the beginning and ending IP addresses are the same. "

Anyway, when I try add an same IP (in the begining and ending address), I get an: "Address Range not valid."

I try the same operation with the Include Range (the same IP in the begining and ending address) and I get the same error.

The openNMS's version is 1.10.3, but other IRC's user in the #opennms channel detects the same behaviour in 1.10.4.

Environment

OpenNMS 1.10.3

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed July 30, 2012 at 12:06 PM

Yeah, looks like there was a validation update for between 1.8 and 1.10 that caused this.

Fixed in the 1.10 and master branches.

In the meantime, you can edit $OPENNMS_HOME/etc/discovery-configuration.xml directly, or, edit $OPENNMS_HOME/jetty-webapps/opennms/admin/discovery/add-er.jsp and change this:

to this:

(ie, turn the two return statements using a greater-than to instead use greater-than-or-equal-to)

...and it should work.

Sistemas Startic July 30, 2012 at 11:54 AM

If I modify the discovery-configuration.xml and I send the uei.opennms.org/internal/discoveryConfigChange event the exclude list shows the unique IP address in the begging and end fields correctly.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created July 30, 2012 at 11:31 AM
Updated January 27, 2017 at 4:21 PM
Resolved July 30, 2012 at 12:06 PM