public SnmpIfData(OnmsSnmpInterface snmpIface) {
m_nodeId = nullSafeUnbox(snmpIface.getNode().getId(), -1);
m_collectionEnabled = snmpIface.isCollectionEnabled();
m_ifIndex = nullSafeUnbox(snmpIface.getIfIndex(), -1);
m_ifType = nullSafeUnbox(snmpIface.getIfType(), -1);
m_rrdLabel = snmpIface.computeLabelForRRD();
m_ifAlias = snmpIface.getIfAlias();
m_attributes.put("snmpphysaddr", snmpIface.getPhysAddr());
m_attributes.put("snmpifindex", Integer.toString(m_ifIndex));
m_attributes.put("snmpifdescr", snmpIface.getIfDescr());
m_attributes.put("snmpiftype", Integer.toString(m_ifType));
m_attributes.put("snmpifname", snmpIface.getIfName());
m_attributes.put("snmpifadminstatus", Integer.toString(nullSafeUnbox(snmpIface.getIfAdminStatus(), -1)));
m_attributes.put("snmpifoperstatus", Integer.toString(nullSafeUnbox(snmpIface.getIfOperStatus(), -1)));
m_attributes.put("snmpifspeed", Long.toString(nullSafeUnbox(snmpIface.getIfSpeed(), -1)));
m_attributes.put("snmpifalias", m_ifAlias);
}