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

Details

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

    • 6674

    Description

      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: