示例#1
0
文件: Router.java 项目: tegger/flower
 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());
   }
 }
示例#2
0
文件: Router.java 项目: tegger/flower
 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;
 }