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

Missing isSnmpPrimary in NetworkElementFactory for Interface objects.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.10.8
    • 1.10.9
    • Web UI - General
    • Security Level: Default (Default Security Scheme)

    Description

      This is related with support ticket 1911:

      We wanted to display the IP address of the primary interface in the node page. When I worked on it, I found that isSnmpPrimary was not being set in NetworkElementFactory, see below. I think it's technically a bug.

      @@ -2228,6 +2228,7 @@ public class NetworkElementFactory implements InitializingBean, NetworkElementFa
      intf.m_ipHostName = ipIface.getIpHostName();
      intf.m_ipAddr = InetAddressUtils.str(ipIface.getIpAddress());
      intf.m_isManaged = ipIface.getIsManaged().charAt(0);
      + intf.m_isSnmpPrimary = ipIface.getIsSnmpPrimary().getCode();
      if(ipIface.getIpLastCapsdPoll() != null) {
      intf.m_ipLastCapsdPoll = Util.formatDateToUIString(ipIface.getIpLastCapsdPoll());
      }

      Attachments

        Activity

          People

            agalue Alejandro Galue
            agalue Alejandro Galue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: