コード例 #1
0
 @Override
 @JsonIgnore
 public void setFeaturesReply(OFFeaturesReply featuresReply) {
   synchronized (portLock) {
     if (stringId == null) {
       /* ports are updated via port status message, so we
        * only fill in ports on initial connection.
        */
       for (OFPhysicalPort port : featuresReply.getPorts()) {
         setPort(port);
       }
     }
     this.datapathId = featuresReply.getDatapathId();
     this.capabilities = featuresReply.getCapabilities();
     this.buffers = featuresReply.getBuffers();
     this.actions = featuresReply.getActions();
     this.tables = featuresReply.getTables();
     this.stringId = HexString.toHexString(this.datapathId);
   }
 }