public void assignDevices() { int i = 0; int s = this.ipmList.size(); for (i = 0; i < s; i++) { IPToMacItem ipm = this.ipmList.get(i); this.assignIP2SubNet(ipm.getIfindex(), ipm.getIpAddr()); } }
public boolean updateIPMList() { otherIpToIfMap = new HashMap<String, Integer>(); ipmList = SNMPUtil.getIpNetToMediaTable(adminIP); if (ipmList != null) { for (IPToMacItem item : ipmList) { otherIpToIfMap.put(item.getIpAddr(), item.getIfindex()); } return true; } return false; }