Exemple #1
0
 private void updatePortStatus(ArrayList<Short> addedPorts, ArrayList<Short> removedPorts) {
   for (Short port : addedPorts) {
     OFPhysicalPort phyPort = findPhyPort(port);
     if (phyPort != null) sendPortStatusUpdate(phyPort, true);
   }
   for (Short port : removedPorts) {
     OFPhysicalPort phyPort = findPhyPort(port);
     if (phyPort != null) sendPortStatusUpdate(phyPort, false);
   }
 }