private static OFPortDesc portDesc(int port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of(port));

    return builder.build();
  }
  private OFPortDesc portDesc(PortNumber port) {
    OFPortDesc.Builder builder = OFFactoryVer10.INSTANCE.buildPortDesc();
    builder.setPortNo(OFPort.of((int) port.toLong()));

    return builder.build();
  }