private void enforceAddedRule(ACLRule rule){
  Set<String> dpidSet;
  if (rule.getNw_src() != null) {
    dpidSet=apManager.getDpidSet(rule.getNw_src_prefix(),rule.getNw_src_maskbits());
  }
 else {
    dpidSet=apManager.getDpidSet(rule.getNw_dst_prefix(),rule.getNw_dst_maskbits());
  }
  Iterator<String> dpidIter=dpidSet.iterator();
  Set<String> nameSet=new HashSet<String>();
  while (dpidIter.hasNext()) {
    String dpid=dpidIter.next();
    String flowName="ACLRule_" + rule.getId() + "_"+ dpid;
    generateFlow(rule,dpid,flowName);
    nameSet.add(flowName);
  }
  ruleId2FlowName.put(rule.getId(),nameSet);
  ruleId2Dpid.put(rule.getId(),dpidSet);
}

private void enforceAddedRule ( ACLRule rule ) { Set < String > dpidSet ; if ( rule . getNw_src ( ) != null ) { dpidSet = apManager . getDpidSet ( rule . getNw_src_prefix ( ) , rule . getNw_src_maskbits ( ) ) ; } else { dpidSet = apManager . getDpidSet ( rule . getNw_dst_prefix ( ) , rule . getNw_dst_maskbits ( ) ) ; } Iterator < String > dpidIter = dpidSet . iterator ( ) ; Set < String > nameSet = new HashSet < String > ( ) ; while ( dpidIter . hasNext ( ) ) { String dpid = dpidIter . next ( ) ; String flowName = "ACLRule_" + rule . getId ( ) + "_" + dpid ; generateFlow ( rule , dpid , flowName ) ; nameSet . add ( flowName ) ; } ruleId2FlowName . put ( rule . getId ( ) , nameSet ) ; ruleId2Dpid . put ( rule . getId ( ) , dpidSet ) ; }
enforce new added rule
