Esempio n. 1
0
 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());
   }
 }
Esempio n. 2
0
 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;
 }