[OPNFLWJAVA-80] the key of the serialization function registered by the vendor is not refinement enough Created: 09/Sep/16  Updated: 19/Oct/17  Resolved: 14/Sep/16

Status: Resolved
Project: openflowjava
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: yunyunhan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 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.



 Comments   
Comment by Michal Polkorab [ 14/Sep/16 ]

Change merged here: https://git.opendaylight.org/gerrit/#/c/45414/

Generated at Wed Feb 07 20:28:53 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.