Thanks for the reply.

I did not update my source since I have checked out so I did not see 
openflowplugin-extension-onf, which is new since I got the files.

I’ll look at it.

Thanks,

> Le 24 mai 2017 à 11:30, Tomáš Slušný <[email protected]> a écrit :
> 
> Hi Yann,
> 
> it should take OFDeserializer that returns error message when deserializing 
> so you should return there that your new OfjNfxExperimenterNoviflowError 
> augment there. Check OnfExtensionProvider in openflowplugin-extensions-onf to 
> see how it is implemented there.
> 
> Regards,
> Tomas Slusny
> Od: yann bourdeau <[email protected] 
> <mailto:[email protected]>>
> Odoslané: streda, 24. mája 2017 17:25
> Komu: [email protected] 
> <mailto:[email protected]>
> Kópia: arun paneri
> Predmet: [openflowplugin-dev] Problem with experimenter error message.
>  
> Hi!
> 
> I’m working on experimenter error message. I have augmented  the 
> error-message:
> 
>  augment "/ofproto:error-message" {
>         ext:augment-identifier "ofj-nfx-experimenter-noviflow-error";
>         leaf novi-error-type {
>             type uint8;
>         }
>         
>         leaf novi-error-code {
>             type uint8;
>         }
>         
>         leaf experimenter {
>             type oft:experimenter-id;
>         }
>         
>         
>     }
> my codec:
> 
> public class NoviFlowErrorCodec implements  
> OFDeserializer<OfjNfxExperimenterNoviflowError>{
> public static final ExperimenterIdDeserializerKey DESERIALIZER_KEY = new 
> ExperimenterIdDeserializerKey(
> EncodeConstants.OF13_VERSION_ID, 
> 0xff000002l,OfjNfxExperimenterNoviflowError.class);
> 
> @Override
> public OfjNfxExperimenterNoviflowError deserialize(ByteBuf message) {
> OfjNfxExperimenterNoviflowErrorBuilder build= new 
> OfjNfxExperimenterNoviflowErrorBuilder();
> build.setNoviErrorType((short)message.readByte()).setNoviErrorCode((short)message.readByte()).setExperimenter(new
>  ExperimenterId((long) message.readInt()));
> return build.build();
> }
> 
> }
> 
> However when I try to register my codec (that only deserialize) i have issue. 
> it seems that it only takes:
>     void registerErrorDeserializer(ExperimenterIdDeserializerKey key,
>             OFDeserializer<ErrorMessage> deserializer);
> 
> 
> My call to register:
>  registrator.registerErrorDeserializer(NoviFlowErrorCodec.DESERIALIZER_KEY, 
> NoviFlowErrorCodecs.ERROR_NOVIFLOW);
> 
> It seems that the register function wants only an ErrorMessage? My codec has 
> OFDeserializer<OfjNfxExperimenterNoviflowError>.
> 
> 
> Am I on the wrong track to implement this?
> 
> Thanks,
> Yann Bourdeau, M.Ing.
> Senior Software Developer
> 438-499-4607
> [email protected] <mailto:[email protected]>
> 
> 
> 
>   
> 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/>
Yann Bourdeau, M.Ing.
Senior Software Developer
438-499-4607
[email protected]



_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to