Uploaded image for project: 'openflowjava'
  1. openflowjava
  2. OPNFLWJAVA-80

the key of the serialization function registered by the vendor is not refinement enough

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • unspecified
    • General
    • None
    • Operating System: All
      Platform: All

    • 6674

      When the data of MeterBand class belongs to the branch MeterBandExperimenterCase,we should call the serialization function registered by the vendor, but the construction of the key is not refinement enough.
      Code as follows:
      if (meterBand instanceof MeterBandExperimenterCase)

      { MeterBandExperimenterCase experimenterBandCase = (MeterBandExperimenterCase) meterBand; MeterBandExperimenter experimenterBand = experimenterBandCase.getMeterBandExperimenter(); long expId = experimenterBand.getAugmentation(ExperimenterIdMeterBand.class) .getExperimenter().getValue(); OFSerializer<MeterBandExperimenterCase> serializer = registry.getSerializer( ExperimenterSerializerKeyFactory.createMeterBandSerializerKey( EncodeConstants.OF13_VERSION_ID, expId)); serializer.serialize(experimenterBandCase, outBuffer); }

      We can refer to the key of the serialization function of the action.

            Unassigned Unassigned
            han.yunyun@zte.com.cn yunyunhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: