* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowjava.eric;
import java.util.List;
* Implementation of EricExtensionCodecRegistrator.
*/
public class EricExtensionCodecRegistratorImpl implements EricExtensionCodecRegistrator {
-
private final List<SwitchConnectionProvider> providers;
public EricExtensionCodecRegistratorImpl(List<SwitchConnectionProvider> providers) {
@Override
public void close() {
- // TODO Auto-generated method stub
+ // No-op
}
-
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowjava.eric;
import com.google.common.base.Preconditions;
import org.opendaylight.openflowjava.eric.api.EricExtensionCodecRegistrator;
-import org.opendaylight.openflowjava.eric.codec.match.EricMatchCodecs;
import org.opendaylight.openflowjava.eric.codec.match.Icmpv6NDOptionsTypeCodec;
import org.opendaylight.openflowjava.eric.codec.match.Icmpv6NDReservedCodec;
public EricExtensionsRegistrator(EricExtensionCodecRegistrator registrator) {
this.registrator = Preconditions.checkNotNull(registrator);
registrator.registerMatchEntrySerializer(Icmpv6NDReservedCodec.SERIALIZER_KEY,
- EricMatchCodecs.ICMPV_6_ND_RESERVED_CODEC);
+ Icmpv6NDReservedCodec.INSTANCE);
registrator.registerMatchEntrySerializer(Icmpv6NDOptionsTypeCodec.SERIALIZER_KEY,
- EricMatchCodecs.ICMPV_6_ND_OPTIONS_TYPE_CODEC);
+ Icmpv6NDOptionsTypeCodec.INSTANCE);
registrator.registerMatchEntryDeserializer(Icmpv6NDReservedCodec.DESERIALIZER_KEY,
- EricMatchCodecs.ICMPV_6_ND_RESERVED_CODEC);
+ Icmpv6NDReservedCodec.INSTANCE);
registrator.registerMatchEntryDeserializer(Icmpv6NDOptionsTypeCodec.DESERIALIZER_KEY,
- EricMatchCodecs.ICMPV_6_ND_OPTIONS_TYPE_CODEC);
+ Icmpv6NDOptionsTypeCodec.INSTANCE);
}
@Override
registrator.unregisterMatchEntryDeserializer(Icmpv6NDReservedCodec.DESERIALIZER_KEY);
registrator.unregisterMatchEntryDeserializer(Icmpv6NDOptionsTypeCodec.DESERIALIZER_KEY);
}
-
}
\ No newline at end of file
+++ /dev/null
-/*
- * Copyright (c) 2019 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.openflowjava.eric.codec.match;
-
-/**
- * Defines Eric match codecs.
- */
-public interface EricMatchCodecs {
-
- Icmpv6NDReservedCodec ICMPV_6_ND_RESERVED_CODEC = new Icmpv6NDReservedCodec();
- Icmpv6NDOptionsTypeCodec ICMPV_6_ND_OPTIONS_TYPE_CODEC = new Icmpv6NDOptionsTypeCodec();
-
-}
\ No newline at end of file
public static final MatchEntryDeserializerKey DESERIALIZER_KEY = new MatchEntryDeserializerKey(
EncodeConstants.OF13_VERSION_ID, EricConstants.ERICOXM_OF_EXPERIMENTER_ID,
EricConstants.ERICOXM_OF_ICMPV6_ND_OPTIONS_TYPE);
+ public static final Icmpv6NDOptionsTypeCodec INSTANCE = new Icmpv6NDOptionsTypeCodec();
@Override
public void serialize(MatchEntry input, ByteBuf outBuffer) {
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.eric.match.rev180730.oxm.container.match.entry.value.Icmpv6NdReservedCaseValueBuilder;
public class Icmpv6NDReservedCodec extends AbstractMatchCodec {
+ public static final Icmpv6NDReservedCodec INSTANCE = new Icmpv6NDReservedCodec();
private static final int VALUE_LENGTH = 4;
public static final MatchEntrySerializerKey<?, ?> SERIALIZER_KEY = new MatchEntrySerializerKey<>(