Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-14576

snmpCollect being reset to C even if a policy sets it to N

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 29.0.11
    • 30.0.3
    • None
    • Security Level: Default (Default Security Scheme)
    • Horizon 22 - Aug 4 - Aug 18
    • Refined Backlog

    Description

      I think we need to fix this portion of the code to not reset snmpCollect=C if it is already set to N when merging snmp properties.

      // This is from https://github.com/OpenNMS/opennms/blob/develop/opennms-model/src/main/java/org/opennms/netmgt/model/OnmsSnmpInterface.java#L769
              if(scannedSnmpIface.isCollectionUserSpecified() || !isCollectionUserSpecified()){
                  setCollectionEnabled(scannedSnmpIface.isCollectionEnabled(), scannedSnmpIface.isCollectionUserSpecified());
              }

      Attachments

        Activity

          People

            amay Alex May
            mmahacek Mark Mahacek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: