Hi Tomas,
It does work. However the code looks like :
public static final MatchEntryDeserializerKey DESERIALIZER_KEY = new
MatchEntryDeserializerKey(
EncodeConstants.OF13_VERSION_ID,
OxmMatchConstants.EXPERIMENTER_CLASS,
NXM_FIELD_CODE);
static {
DESERIALIZER_KEY.setExperimenterId(0xff000002L);
}
It is not the more elegant code but it does work. I wanted to extend the class
to put it in the constructor and call the setExperimenterId in the constructor
of the extended class. However, it works for now, I leave as is.
Thanks for your help.
Yann
> Le 12 mai 2017 à 04:19, Tomáš Slušný <[email protected]> a écrit :
>
> Hi Yann,
>
> MatchEntryDeserializerKey have method .setExperimenterId, so you do not need
> to extend this class to support it. It just do not have experimenterId in
> constructor. And for implementing deserializers for experimenters, you can
> just follow how it is done in openflowplugin extensions, process should be
> the same.
>
> Regards,
> Tomas
>
> Od: yann bourdeau <[email protected]
> <mailto:[email protected]>>
> Odoslané: štvrtok, 11. mája 2017 17:48
> Komu: [email protected]
> <mailto:[email protected]>
> Kópia: arun paneri
> Predmet: [openflowplugin-dev] Question about Experimenter Match Field keys.
>
> Hi All,
>
> I’m finally back on my experimenters. So I continue where I left two
> weeks ago. Regarding the key for deserialization on an experimenter match
> field.
>
> I thought I needed to extend the MatchEntryDeserializeKey because
> there is no ExperimenterMatchDeserializerKey class but
> MatchEntryDeserializeKey is final. Do I need to implement an Experimenter
> class like the others or could use the Match on and setting the
> ExperimenterId (a method to do it not in the constructor) in a static part of
> the class? Please, let me know what is the best way to do it? There never
> been experimenters match fields beside extensions?
>
> Thank in advance
>
> Yann Bourdeau, M.Ing.
> Senior Software Developer
> 438-499-4607
> [email protected]
>
>
>
> _______________________________________________
> openflowplugin-dev mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
> <https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev>
>
> Tomáš Slušný
> Software Developer
>
> PANTHEON technologies s.r.o.
> Janka Kráľa 9, 974 01 Banská Bystrica
> Slovakia
> Tel / +421 220 665 111
>
> MAIL / [email protected] <mailto:[email protected]>
> WEB / www.pantheon.tech <http://www.pantheon.tech/>
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev