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]
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev