This bumps mdsal to 4.0.0, adjusting for codegen changes.
Change-Id: If3d2e2c6ec1c70b95b3aae2105fe54de6c447000
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
int newBatchSize = batchSize;
LOG.info("Number of Txn for dpId: {} is: {}", dpId, numSubmits);
- txChain = dataBroker.createTransactionChain(this);
+ txChain = dataBroker.createMergingTransactionChain(this);
LOG.info("Creating new txChain: {} for dpid: {}", txChain, dpId);
for (int i = 1; i <= numSubmits; i++) {
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
odl:use-default-for-reference-types="true">
- <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="pingpong"/>
+ <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
<odl:rpc-service id="flowService"
interface="org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService"/>
import org.opendaylight.mdsal.common.api.CommitInfo;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Test for {@link FlowWriterTxChain}.
@RunWith(MockitoJUnitRunner.class)
public class FlowWriterTxChainTest {
- private static final Logger LOG = LoggerFactory.getLogger(FlowWriterTxChainTest.class);
private static final int FLOWS_PER_DPN = 100;
@Mock
final TransactionChain mockedTxChain = mock(TransactionChain.class);
when(mockedTxChain.newWriteOnlyTransaction()).thenReturn(writeTransaction);
doReturn(mockedTxChain).when(mockDataBroker)
- .createTransactionChain(ArgumentMatchers.any());
+ .createMergingTransactionChain(ArgumentMatchers.any());
doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
}
for (Action action : actions) {
// chained-port
- if (action.getAction().getImplementedInterface().getName()
+ if (action.getAction().implementedInterface().getName()
.equals("org.opendaylight.yang.gen.v1.urn.opendaylight"
+ ".action.types.rev131112.action.action.OutputActionCase")) {
String nodeConnectorUri = ((OutputActionCase) action.getAction()).getOutputAction()
nodeConnectorUri, group.getGroupId().toString());
break;
}
- } else if (action.getAction().getImplementedInterface().getName()
+ } else if (action.getAction().implementedInterface().getName()
.equals("org.opendaylight.yang.gen.v1.urn.opendaylight"
+ ".action.types.rev131112.action.action.GroupActionCase")) {
// chained groups
List<Instruction> instructions = flow.getInstructions().getInstruction();
for (Instruction instruction : instructions) {
List<Action> actions = Collections.emptyList();
- if (instruction.getInstruction().getImplementedInterface()
+ if (instruction.getInstruction().implementedInterface()
.equals(ActionType.APPLY_ACTION.getActionType())) {
actions = ((ApplyActionsCase) instruction.getInstruction())
.getApplyActions().getAction();
}
for (Action action : actions) {
- if (action.getAction().getImplementedInterface()
+ if (action.getAction().implementedInterface()
.equals(ActionType.GROUP_ACTION.getActionType())) {
return ((GroupActionCase) action.getAction()).getGroupAction()
.getGroupId();
for (Bucket bucket : pendingGroup.getBuckets().getBucket()) {
for (Action action : bucket.getAction()) {
// if the output action is a group
- if (GroupActionCase.class.equals(action.getAction().getImplementedInterface())) {
+ if (GroupActionCase.class.equals(action.getAction().implementedInterface())) {
Long groupId = ((GroupActionCase) action.getAction()).getGroupAction().getGroupId();
// see if that output group is installed
if (!installedGroupIds.contains(groupId)) {
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
odl:use-default-for-reference-types="true">
- <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="pingpong"/>
+ <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
<reference id="rpcRegistry" interface="org.opendaylight.mdsal.binding.api.RpcConsumerRegistry"/>
<reference id="clusterSingletonService" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
Assert.assertEquals(6, lastOrder);
Assert.assertEquals(2, batchBag.size());
- Assert.assertEquals(FlatBatchRemoveFlowCase.class, batchBag.get(0).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchRemoveFlowCase.class, batchBag.get(0).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchRemoveFlowCase) batchBag.get(0).getBatchChoice())
.getFlatBatchRemoveFlow().size());
- Assert.assertEquals(FlatBatchRemoveFlowCase.class, batchBag.get(1).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchRemoveFlowCase.class, batchBag.get(1).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchRemoveFlowCase) batchBag.get(1).getBatchChoice())
.getFlatBatchRemoveFlow().size());
}
Assert.assertEquals(9, lastOrder);
Assert.assertEquals(3, batchBag.size());
- Assert.assertEquals(FlatBatchAddGroupCase.class, batchBag.get(0).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchAddGroupCase.class, batchBag.get(0).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchAddGroupCase) batchBag.get(0).getBatchChoice())
.getFlatBatchAddGroup().size());
- Assert.assertEquals(FlatBatchAddGroupCase.class, batchBag.get(1).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchAddGroupCase.class, batchBag.get(1).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchAddGroupCase) batchBag.get(1).getBatchChoice())
.getFlatBatchAddGroup().size());
- Assert.assertEquals(FlatBatchUpdateGroupCase.class, batchBag.get(2).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchUpdateGroupCase.class, batchBag.get(2).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchUpdateGroupCase) batchBag.get(2).getBatchChoice())
.getFlatBatchUpdateGroup().size());
}
Assert.assertEquals(6, lastOrder);
Assert.assertEquals(2, batchBag.size());
- Assert.assertEquals(FlatBatchRemoveGroupCase.class, batchBag.get(0).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchRemoveGroupCase.class, batchBag.get(0).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchRemoveGroupCase) batchBag.get(0).getBatchChoice())
.getFlatBatchRemoveGroup().size());
- Assert.assertEquals(FlatBatchRemoveGroupCase.class, batchBag.get(1).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchRemoveGroupCase.class, batchBag.get(1).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchRemoveGroupCase) batchBag.get(1).getBatchChoice())
.getFlatBatchRemoveGroup().size());
}
Assert.assertEquals(6, lastOrder);
Assert.assertEquals(2, batchBag.size());
- Assert.assertEquals(FlatBatchAddMeterCase.class, batchBag.get(0).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchAddMeterCase.class, batchBag.get(0).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchAddMeterCase) batchBag.get(0).getBatchChoice())
.getFlatBatchAddMeter().size());
- Assert.assertEquals(FlatBatchUpdateMeterCase.class, batchBag.get(1).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchUpdateMeterCase.class, batchBag.get(1).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchUpdateMeterCase) batchBag.get(1).getBatchChoice())
.getFlatBatchUpdateMeter().size());
}
Assert.assertEquals(3, lastOrder);
Assert.assertEquals(1, batchBag.size());
- Assert.assertEquals(FlatBatchRemoveMeterCase.class, batchBag.get(0).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchRemoveMeterCase.class, batchBag.get(0).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchRemoveMeterCase) batchBag.get(0).getBatchChoice())
.getFlatBatchRemoveMeter().size());
}
Assert.assertEquals(9, lastOrder);
Assert.assertEquals(3, batchBag.size());
- Assert.assertEquals(FlatBatchAddFlowCase.class, batchBag.get(0).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchAddFlowCase.class, batchBag.get(0).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchAddFlowCase) batchBag.get(0).getBatchChoice())
.getFlatBatchAddFlow().size());
- Assert.assertEquals(FlatBatchUpdateFlowCase.class, batchBag.get(1).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchUpdateFlowCase.class, batchBag.get(1).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchUpdateFlowCase) batchBag.get(1).getBatchChoice())
.getFlatBatchUpdateFlow().size());
- Assert.assertEquals(FlatBatchAddFlowCase.class, batchBag.get(2).getBatchChoice().getImplementedInterface());
+ Assert.assertEquals(FlatBatchAddFlowCase.class, batchBag.get(2).getBatchChoice().implementedInterface());
Assert.assertEquals(3, ((FlatBatchAddFlowCase) batchBag.get(2).getBatchChoice())
.getFlatBatchAddFlow().size());
}
import static org.opendaylight.openflowplugin.applications.topology.manager.TestUtils.waitForDeletes;
import static org.opendaylight.openflowplugin.applications.topology.manager.TestUtils.waitForSubmit;
+import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.SettableFuture;
import java.util.Arrays;
import java.util.Collections;
SettableFuture<Optional<Topology>> readFuture = SettableFuture.create();
readFuture.set(Optional.of(topology));
ReadWriteTransaction mockTx1 = mock(ReadWriteTransaction.class);
- doReturn(readFuture).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topologyIID);
+ doReturn(FluentFuture.from(readFuture)).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topologyIID);
SettableFuture<Optional<Node>> readFutureNode = SettableFuture.create();
readFutureNode.set(Optional.of(topoNode));
- doReturn(readFutureNode).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topoNodeII);
+ doReturn(FluentFuture.from(readFutureNode)).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topoNodeII);
final CountDownLatch submitLatch1 = setupStubbedSubmit(mockTx1);
import static org.opendaylight.openflowplugin.applications.topology.manager.TestUtils.waitForDeletes;
import static org.opendaylight.openflowplugin.applications.topology.manager.TestUtils.waitForSubmit;
+import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.SettableFuture;
import java.util.Arrays;
import java.util.Collections;
final SettableFuture<Optional<Topology>> readFuture = SettableFuture.create();
readFuture.set(Optional.of(topology));
ReadWriteTransaction mockTx1 = mock(ReadWriteTransaction.class);
- doReturn(readFuture).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topologyIID);
+ doReturn(FluentFuture.from(readFuture)).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topologyIID);
SettableFuture<Optional<Node>> readFutureNode = SettableFuture.create();
readFutureNode.set(Optional.of(topoNode));
- doReturn(readFutureNode).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topoNodeII);
+ doReturn(FluentFuture.from(readFutureNode)).when(mockTx1).read(LogicalDatastoreType.OPERATIONAL, topoNodeII);
final CountDownLatch submitLatch1 = setupStubbedSubmit(mockTx1);
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
odl:use-default-for-reference-types="true">
- <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="pingpong"/>
+ <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
<reference id="notificationService" interface="org.opendaylight.mdsal.binding.api.NotificationService"/>
<odl:rpc-service id="flowService"
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcOfIpDstCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcOfIpSrcCaseBuilder;
import org.opendaylight.yangtools.yang.binding.DataContainer;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* A helper class that maps various NXM/OXM header representations to
static {
final ImmutableMap<SrcChoice, NxmHeader> srcChoiceToNxmheader =
new ImmutableMap.Builder<SrcChoice, NxmHeader>()
- .put(new SrcNxTunIdCaseBuilder().setNxTunId(true).build(),
+ .put(new SrcNxTunIdCaseBuilder().setNxTunId(Empty.getInstance()).build(),
NiciraMatchCodecs.TUN_ID_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxArpShaCaseBuilder().setNxArpSha(true).build(),
+ .put(new SrcNxArpShaCaseBuilder().setNxArpSha(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_SHA_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxArpThaCaseBuilder().setNxArpTha(true).build(),
+ .put(new SrcNxArpThaCaseBuilder().setNxArpTha(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_THA_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfArpOpCaseBuilder().setOfArpOp(true).build(),
+ .put(new SrcOfArpOpCaseBuilder().setOfArpOp(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_OP_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfArpSpaCaseBuilder().setOfArpSpa(true).build(),
+ .put(new SrcOfArpSpaCaseBuilder().setOfArpSpa(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_SPA_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfArpTpaCaseBuilder().setOfArpTpa(true).build(),
+ .put(new SrcOfArpTpaCaseBuilder().setOfArpTpa(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_TPA_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxOfInPortCaseBuilder().setOfInPort(true).build(),
+ .put(new SrcNxOfInPortCaseBuilder().setOfInPort(Empty.getInstance()).build(),
NiciraMatchCodecs.NXM_OF_IN_PORT_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxOfMetadataCaseBuilder().setOfMetadata(true).build(),
+ .put(new SrcNxOfMetadataCaseBuilder().setOfMetadata(Empty.getInstance()).build(),
NiciraMatchCodecs.OXM_OF_METADATA_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfEthDstCaseBuilder().setOfEthDst(true).build(),
+ .put(new SrcOfEthDstCaseBuilder().setOfEthDst(Empty.getInstance()).build(),
NiciraMatchCodecs.ETH_DST_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfEthSrcCaseBuilder().setOfEthSrc(true).build(),
+ .put(new SrcOfEthSrcCaseBuilder().setOfEthSrc(Empty.getInstance()).build(),
NiciraMatchCodecs.ETH_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfEthTypeCaseBuilder().setOfEthType(true).build(),
+ .put(new SrcOfEthTypeCaseBuilder().setOfEthType(Empty.getInstance()).build(),
NiciraMatchCodecs.ETH_TYPE_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(true).build(),
+ .put(new SrcNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.TUN_IPV4_DST_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(true).build(),
+ .put(new SrcNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(Empty.getInstance()).build(),
NiciraMatchCodecs.TUN_IPV4_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNspCaseBuilder().setNxNspDst(true).build(),
+ .put(new SrcNxNspCaseBuilder().setNxNspDst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSP_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNsiCaseBuilder().setNxNsiDst(true).build(),
+ .put(new SrcNxNsiCaseBuilder().setNxNsiDst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSI_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshc1CaseBuilder().setNxNshc1Dst(true).build(),
+ .put(new SrcNxNshc1CaseBuilder().setNxNshc1Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC1_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshc2CaseBuilder().setNxNshc2Dst(true).build(),
+ .put(new SrcNxNshc2CaseBuilder().setNxNshc2Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC2_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshc3CaseBuilder().setNxNshc3Dst(true).build(),
+ .put(new SrcNxNshc3CaseBuilder().setNxNshc3Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC3_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshc4CaseBuilder().setNxNshc4Dst(true).build(),
+ .put(new SrcNxNshc4CaseBuilder().setNxNshc4Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC4_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshFlagsCaseBuilder().setNxNshFlags(true).build(),
+ .put(new SrcNxNshFlagsCaseBuilder().setNxNshFlags(Empty.getInstance()).build(),
NiciraMatchCodecs.NSH_FLAGS_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshTtlCaseBuilder().setNxNshTtl(true).build(),
+ .put(new SrcNxNshTtlCaseBuilder().setNxNshTtl(Empty.getInstance()).build(),
NiciraMatchCodecs.NSH_TTL_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshMdtypeCaseBuilder().setNxNshMdtype(true).build(),
+ .put(new SrcNxNshMdtypeCaseBuilder().setNxNshMdtype(Empty.getInstance()).build(),
NiciraMatchCodecs.NSH_MDTYPE_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxNshNpCaseBuilder().setNxNshNp(true).build(),
+ .put(new SrcNxNshNpCaseBuilder().setNxNshNp(Empty.getInstance()).build(),
NiciraMatchCodecs.NSH_NP_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfIpDstCaseBuilder().setOfIpDst(true).build(),
+ .put(new SrcOfIpDstCaseBuilder().setOfIpDst(Empty.getInstance()).build(),
NiciraMatchCodecs.IP_DST_CODEC.getHeaderWithoutHasMask())
- .put(new SrcOfIpSrcCaseBuilder().setOfIpSrc(true).build(),
+ .put(new SrcOfIpSrcCaseBuilder().setOfIpSrc(Empty.getInstance()).build(),
NiciraMatchCodecs.IP_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxIpv6SrcCaseBuilder().setNxIpv6Src(true).build(),
+ .put(new SrcNxIpv6SrcCaseBuilder().setNxIpv6Src(Empty.getInstance()).build(),
NiciraMatchCodecs.IPV6_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxIpv6DstCaseBuilder().setNxIpv6Dst(true).build(),
+ .put(new SrcNxIpv6DstCaseBuilder().setNxIpv6Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.IPV6_DST_CODEC.getHeaderWithoutHasMask())
- .put(new SrcNxOfMplsLabelCaseBuilder().setOfMplsLabel(true).build(),
+ .put(new SrcNxOfMplsLabelCaseBuilder().setOfMplsLabel(Empty.getInstance()).build(),
NiciraMatchCodecs.OXM_OF_MPLS_LABEL.getHeaderWithoutHasMask())
.put(new SrcNxRegCaseBuilder().setNxReg(NxmNxReg0.class).build(),
NiciraMatchCodecs.REG0_CODEC.getHeaderWithoutHasMask())
final ImmutableMap<DstChoice, NxmHeader> dstChoiceToNxmheader =
new ImmutableMap.Builder<DstChoice, NxmHeader>()
- .put(new DstNxTunIdCaseBuilder().setNxTunId(true).build(),
+ .put(new DstNxTunIdCaseBuilder().setNxTunId(Empty.getInstance()).build(),
NiciraMatchCodecs.TUN_ID_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxArpShaCaseBuilder().setNxArpSha(true).build(),
+ .put(new DstNxArpShaCaseBuilder().setNxArpSha(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_SHA_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxArpThaCaseBuilder().setNxArpTha(true).build(),
+ .put(new DstNxArpThaCaseBuilder().setNxArpTha(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_THA_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfArpOpCaseBuilder().setOfArpOp(true).build(),
+ .put(new DstOfArpOpCaseBuilder().setOfArpOp(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_OP_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfArpSpaCaseBuilder().setOfArpSpa(true).build(),
+ .put(new DstOfArpSpaCaseBuilder().setOfArpSpa(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_SPA_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfArpTpaCaseBuilder().setOfArpTpa(true).build(),
+ .put(new DstOfArpTpaCaseBuilder().setOfArpTpa(Empty.getInstance()).build(),
NiciraMatchCodecs.ARP_TPA_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxOfInPortCaseBuilder().setOfInPort(true).build(),
+ .put(new DstNxOfInPortCaseBuilder().setOfInPort(Empty.getInstance()).build(),
NiciraMatchCodecs.NXM_OF_IN_PORT_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfMetadataCaseBuilder().setOfMetadata(true).build(),
+ .put(new DstOfMetadataCaseBuilder().setOfMetadata(Empty.getInstance()).build(),
NiciraMatchCodecs.OXM_OF_METADATA_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfEthSrcCaseBuilder().setOfEthSrc(true).build(),
+ .put(new DstOfEthSrcCaseBuilder().setOfEthSrc(Empty.getInstance()).build(),
NiciraMatchCodecs.ETH_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfEthDstCaseBuilder().setOfEthDst(true).build(),
+ .put(new DstOfEthDstCaseBuilder().setOfEthDst(Empty.getInstance()).build(),
NiciraMatchCodecs.ETH_DST_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(true).build(),
+ .put(new DstNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.TUN_IPV4_DST_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(true).build(),
+ .put(new DstNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(Empty.getInstance()).build(),
NiciraMatchCodecs.TUN_IPV4_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNspCaseBuilder().setNxNspDst(true).build(),
+ .put(new DstNxNspCaseBuilder().setNxNspDst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSP_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNsiCaseBuilder().setNxNsiDst(true).build(),
+ .put(new DstNxNsiCaseBuilder().setNxNsiDst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSI_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNshc1CaseBuilder().setNxNshc1Dst(true).build(),
+ .put(new DstNxNshc1CaseBuilder().setNxNshc1Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC1_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNshc2CaseBuilder().setNxNshc2Dst(true).build(),
+ .put(new DstNxNshc2CaseBuilder().setNxNshc2Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC2_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNshc3CaseBuilder().setNxNshc3Dst(true).build(),
+ .put(new DstNxNshc3CaseBuilder().setNxNshc3Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC3_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNshc4CaseBuilder().setNxNshc4Dst(true).build(),
+ .put(new DstNxNshc4CaseBuilder().setNxNshc4Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.NSC4_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNshFlagsCaseBuilder().setNxNshFlags(true).build(),
+ .put(new DstNxNshFlagsCaseBuilder().setNxNshFlags(Empty.getInstance()).build(),
NiciraMatchCodecs.NSH_FLAGS_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxNshTtlCaseBuilder().setNxNshTtl(true).build(),
+ .put(new DstNxNshTtlCaseBuilder().setNxNshTtl(Empty.getInstance()).build(),
NiciraMatchCodecs.NSH_TTL_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfIpDstCaseBuilder().setOfIpDst(true).build(),
+ .put(new DstOfIpDstCaseBuilder().setOfIpDst(Empty.getInstance()).build(),
NiciraMatchCodecs.IP_DST_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfIpSrcCaseBuilder().setOfIpSrc(true).build(),
+ .put(new DstOfIpSrcCaseBuilder().setOfIpSrc(Empty.getInstance()).build(),
NiciraMatchCodecs.IP_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxIpv6SrcCaseBuilder().setNxIpv6Src(true).build(),
+ .put(new DstNxIpv6SrcCaseBuilder().setNxIpv6Src(Empty.getInstance()).build(),
NiciraMatchCodecs.IPV6_SRC_CODEC.getHeaderWithoutHasMask())
- .put(new DstNxIpv6DstCaseBuilder().setNxIpv6Dst(true).build(),
+ .put(new DstNxIpv6DstCaseBuilder().setNxIpv6Dst(Empty.getInstance()).build(),
NiciraMatchCodecs.IPV6_DST_CODEC.getHeaderWithoutHasMask())
- .put(new DstOfMplsLabelCaseBuilder().setOfMplsLabel(true).build(),
+ .put(new DstOfMplsLabelCaseBuilder().setOfMplsLabel(Empty.getInstance()).build(),
NiciraMatchCodecs.OXM_OF_MPLS_LABEL.getHeaderWithoutHasMask())
- .put(new DstOfIcmpTypeCaseBuilder().setOfIcmpType(true).build(),
+ .put(new DstOfIcmpTypeCaseBuilder().setOfIcmpType(Empty.getInstance()).build(),
NiciraMatchCodecs.ICMP_TYPE_CODEC.getHeaderWithoutHasMask())
.put(new DstNxRegCaseBuilder().setNxReg(NxmNxReg0.class).build(),
NiciraMatchCodecs.REG0_CODEC.getHeaderWithoutHasMask())
if (srcChoice instanceof SrcNxRegCase) {
regSrcChoiceToHeaderBuilder.put(srcChoice, header);
} else {
- srcTypeToHeaderBuilder.put(srcChoice.getImplementedInterface(), header);
+ srcTypeToHeaderBuilder.put(srcChoice.implementedInterface(), header);
}
});
NXMHEADER_TO_SRC_CHOICE = headerToSrcChoiceBuilder.build();
if (dstChoice instanceof DstNxRegCase) {
regDstChoiceToHeaderBuilder.put(dstChoice, header);
} else {
- dstTypeToHeaderBuilder.put(dstChoice.getImplementedInterface(), header);
+ dstTypeToHeaderBuilder.put(dstChoice.implementedInterface(), header);
}
});
NXMHEADER_TO_DST_CHOICE = dstToHeaderBuilder.build();
static Long resolveDstHeaderUint32(DstChoice dstChoice) {
NxmHeader nxmHeader = dstChoice instanceof DstNxRegCase
? REG_DST_CHOICE_TO_NXMHEADER.get(dstChoice)
- : DST_CHOICE_TYPE_TO_NXMHEADER.get(dstChoice.getImplementedInterface());
+ : DST_CHOICE_TYPE_TO_NXMHEADER.get(dstChoice.implementedInterface());
if (nxmHeader.isExperimenter()) {
throw new IllegalArgumentException("Cannot fit experimenter destination choice on a uint32 header");
}
static BigInteger resolveDstHeaderUint64(DstChoice dstChoice) {
return dstChoice instanceof DstNxRegCase
? REG_DST_CHOICE_TO_NXMHEADER.get(dstChoice).toBigInteger()
- : DST_CHOICE_TYPE_TO_NXMHEADER.get(dstChoice.getImplementedInterface()).toBigInteger();
+ : DST_CHOICE_TYPE_TO_NXMHEADER.get(dstChoice.implementedInterface()).toBigInteger();
}
/**
static Long resolveSrcHeaderUint32(SrcChoice srcChoice) {
NxmHeader nxmHeader = srcChoice instanceof SrcNxRegCase
? REG_SRC_CHOICE_TO_NXMHEADER.get(srcChoice)
- : SRC_CHOICE_TYPE_TO_NXMHEADER.get(srcChoice.getImplementedInterface());
+ : SRC_CHOICE_TYPE_TO_NXMHEADER.get(srcChoice.implementedInterface());
if (nxmHeader.isExperimenter()) {
throw new IllegalArgumentException("Cannot fit experimenter source choice on a uint32 header");
}
static BigInteger resolveSrcHeaderUint64(SrcChoice srcChoice) {
return srcChoice instanceof SrcNxRegCase
? REG_SRC_CHOICE_TO_NXMHEADER.get(srcChoice).toBigInteger()
- : SRC_CHOICE_TYPE_TO_NXMHEADER.get(srcChoice.getImplementedInterface()).toBigInteger();
+ : SRC_CHOICE_TYPE_TO_NXMHEADER.get(srcChoice.implementedInterface()).toBigInteger();
}
/**
static boolean isExperimenter(SrcChoice srcChoice) {
return srcChoice instanceof SrcNxRegCase
? REG_SRC_CHOICE_TO_NXMHEADER.get(srcChoice).isExperimenter()
- : SRC_CHOICE_TYPE_TO_NXMHEADER.get(srcChoice.getImplementedInterface()).isExperimenter();
+ : SRC_CHOICE_TYPE_TO_NXMHEADER.get(srcChoice.implementedInterface()).isExperimenter();
}
/**
static boolean isExperimenter(DstChoice dstChoice) {
return dstChoice instanceof DstNxRegCase
? REG_DST_CHOICE_TO_NXMHEADER.get(dstChoice).isExperimenter()
- : DST_CHOICE_TYPE_TO_NXMHEADER.get(dstChoice.getImplementedInterface()).isExperimenter();
+ : DST_CHOICE_TYPE_TO_NXMHEADER.get(dstChoice.implementedInterface()).isExperimenter();
}
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.reg.load.grouping.NxRegLoadBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.reg.load.grouping.nx.reg.load.Dst;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.reg.load.grouping.nx.reg.load.DstBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Convert between RegLoad SAL action and RegLoad2 nicira action.
if (NxmNxNshFlags.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSH_FLAGS_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNshFlagsCaseBuilder().setNxNshFlags(true).build());
+ dstBuilder.setDstChoice(new DstNxNshFlagsCaseBuilder().setNxNshFlags(Empty.getInstance()).build());
NshFlagsValues nshFlagsValues = ((NshFlagsCaseValue) value).getNshFlagsValues();
return resolveRegLoad(nshFlagsValues.getNshFlags(), nshFlagsValues.getMask(), valueLength, dstBuilder);
}
if (NxmNxNsp.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSP_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNspCaseBuilder().setNxNspDst(true).build());
+ dstBuilder.setDstChoice(new DstNxNspCaseBuilder().setNxNspDst(Empty.getInstance()).build());
NspValues nspValues = ((NspCaseValue) value).getNspValues();
return resolveRegLoad(nspValues.getNsp(), nspValues.getMask(), valueLength, dstBuilder);
}
if (NxmNxNsi.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSI_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNsiCaseBuilder().setNxNsiDst(true).build());
+ dstBuilder.setDstChoice(new DstNxNsiCaseBuilder().setNxNsiDst(Empty.getInstance()).build());
NsiValues nsiValues = ((NsiCaseValue) value).getNsiValues();
return resolveRegLoad(nsiValues.getNsi(), nsiValues.getMask(), valueLength, dstBuilder);
}
if (NxmNxNshc1.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSC1_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNshc1CaseBuilder().setNxNshc1Dst(true).build());
+ dstBuilder.setDstChoice(new DstNxNshc1CaseBuilder().setNxNshc1Dst(Empty.getInstance()).build());
NshcCaseValue nshcCaseValue = ((NshcCaseValue) value);
return resolveRegLoad(nshcCaseValue.getNshc(), nshcCaseValue.getMask(), valueLength, dstBuilder);
}
if (NxmNxNshc2.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSC2_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNshc2CaseBuilder().setNxNshc2Dst(true).build());
+ dstBuilder.setDstChoice(new DstNxNshc2CaseBuilder().setNxNshc2Dst(Empty.getInstance()).build());
NshcCaseValue nshcCaseValue = ((NshcCaseValue) value);
return resolveRegLoad(nshcCaseValue.getNshc(), nshcCaseValue.getMask(), valueLength, dstBuilder);
}
if (NxmNxNshc3.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSC3_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNshc3CaseBuilder().setNxNshc3Dst(true).build());
+ dstBuilder.setDstChoice(new DstNxNshc3CaseBuilder().setNxNshc3Dst(Empty.getInstance()).build());
NshcCaseValue nshcCaseValue = ((NshcCaseValue) value);
return resolveRegLoad(nshcCaseValue.getNshc(), nshcCaseValue.getMask(), valueLength, dstBuilder);
}
if (NxmNxNshc4.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSC4_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNshc4CaseBuilder().setNxNshc4Dst(true).build());
+ dstBuilder.setDstChoice(new DstNxNshc4CaseBuilder().setNxNshc4Dst(Empty.getInstance()).build());
NshcCaseValue nshcCaseValue = ((NshcCaseValue) value);
return resolveRegLoad(nshcCaseValue.getNshc(), nshcCaseValue.getMask(), valueLength, dstBuilder);
}
if (NxmNxNshTtl.class.equals(oxmMatchField)) {
int valueLength = NiciraMatchCodecs.NSH_TTL_CODEC.getValueLength();
- dstBuilder.setDstChoice(new DstNxNshTtlCaseBuilder().setNxNshTtl(true).build());
+ dstBuilder.setDstChoice(new DstNxNshTtlCaseBuilder().setNxNshTtl(Empty.getInstance()).build());
NshTtlValues nshTtlValues = ((NshTtlCaseValue) value).getNshTtlValues();
return resolveRegLoad(nshTtlValues.getNshTtl(), nshTtlValues.getMask(), valueLength, dstBuilder);
}
- throw new CodecPreconditionException("Missing codec for " + value.getImplementedInterface());
+ throw new CodecPreconditionException("Missing codec for " + value.implementedInterface());
}
private static NxRegLoad resolveRegLoad(Short value, @Nullable Short mask, int valueLength, DstBuilder dstBuilder) {
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcOfEthTypeCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcOfIpDstCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcOfIpSrcCaseBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
@RunWith(Parameterized.class)
public class FieldChoiceResolverTest {
{
NiciraMatchCodecs.TUN_ID_CODEC.getHeaderWithoutHasMask(),
new DstNxTunIdCaseBuilder().build(),
- new DstNxTunIdCaseBuilder().setNxTunId(true).build(),
+ new DstNxTunIdCaseBuilder().setNxTunId(Empty.getInstance()).build(),
new SrcNxTunIdCaseBuilder().build(),
- new SrcNxTunIdCaseBuilder().setNxTunId(true).build()
+ new SrcNxTunIdCaseBuilder().setNxTunId(Empty.getInstance()).build()
},
{
NiciraMatchCodecs.ARP_SHA_CODEC.getHeaderWithoutHasMask(),
new DstNxArpShaCaseBuilder().build(),
- new DstNxArpShaCaseBuilder().setNxArpSha(true).build(),
+ new DstNxArpShaCaseBuilder().setNxArpSha(Empty.getInstance()).build(),
new SrcNxArpShaCaseBuilder().build(),
- new SrcNxArpShaCaseBuilder().setNxArpSha(true).build(),
+ new SrcNxArpShaCaseBuilder().setNxArpSha(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ARP_SHA_CODEC.getHeaderWithoutHasMask(),
new DstNxArpShaCaseBuilder().build(),
- new DstNxArpShaCaseBuilder().setNxArpSha(true).build(),
+ new DstNxArpShaCaseBuilder().setNxArpSha(Empty.getInstance()).build(),
new SrcNxArpShaCaseBuilder().build(),
- new SrcNxArpShaCaseBuilder().setNxArpSha(true).build(),
+ new SrcNxArpShaCaseBuilder().setNxArpSha(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ARP_THA_CODEC.getHeaderWithoutHasMask(),
new DstNxArpThaCaseBuilder().build(),
- new DstNxArpThaCaseBuilder().setNxArpTha(true).build(),
+ new DstNxArpThaCaseBuilder().setNxArpTha(Empty.getInstance()).build(),
new SrcNxArpThaCaseBuilder().build(),
- new SrcNxArpThaCaseBuilder().setNxArpTha(true).build(),
+ new SrcNxArpThaCaseBuilder().setNxArpTha(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ARP_OP_CODEC.getHeaderWithoutHasMask(),
new DstOfArpOpCaseBuilder().build(),
- new DstOfArpOpCaseBuilder().setOfArpOp(true).build(),
+ new DstOfArpOpCaseBuilder().setOfArpOp(Empty.getInstance()).build(),
new SrcOfArpOpCaseBuilder().build(),
- new SrcOfArpOpCaseBuilder().setOfArpOp(true).build(),
+ new SrcOfArpOpCaseBuilder().setOfArpOp(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ARP_SPA_CODEC.getHeaderWithoutHasMask(),
new DstOfArpSpaCaseBuilder().build(),
- new DstOfArpSpaCaseBuilder().setOfArpSpa(true).build(),
+ new DstOfArpSpaCaseBuilder().setOfArpSpa(Empty.getInstance()).build(),
new SrcOfArpSpaCaseBuilder().build(),
- new SrcOfArpSpaCaseBuilder().setOfArpSpa(true).build(),
+ new SrcOfArpSpaCaseBuilder().setOfArpSpa(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ARP_TPA_CODEC.getHeaderWithoutHasMask(),
new DstOfArpTpaCaseBuilder().build(),
- new DstOfArpTpaCaseBuilder().setOfArpTpa(true).build(),
+ new DstOfArpTpaCaseBuilder().setOfArpTpa(Empty.getInstance()).build(),
new SrcOfArpTpaCaseBuilder().build(),
- new SrcOfArpTpaCaseBuilder().setOfArpTpa(true).build(),
+ new SrcOfArpTpaCaseBuilder().setOfArpTpa(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NXM_OF_IN_PORT_CODEC.getHeaderWithoutHasMask(),
new DstNxOfInPortCaseBuilder().build(),
- new DstNxOfInPortCaseBuilder().setOfInPort(true).build(),
+ new DstNxOfInPortCaseBuilder().setOfInPort(Empty.getInstance()).build(),
new SrcNxOfInPortCaseBuilder().build(),
- new SrcNxOfInPortCaseBuilder().setOfInPort(true).build(),
+ new SrcNxOfInPortCaseBuilder().setOfInPort(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.OXM_OF_METADATA_CODEC.getHeaderWithoutHasMask(),
new DstOfMetadataCaseBuilder().build(),
- new DstOfMetadataCaseBuilder().setOfMetadata(true).build(),
+ new DstOfMetadataCaseBuilder().setOfMetadata(Empty.getInstance()).build(),
new SrcNxOfMetadataCaseBuilder().build(),
- new SrcNxOfMetadataCaseBuilder().setOfMetadata(true).build(),
+ new SrcNxOfMetadataCaseBuilder().setOfMetadata(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.OXM_OF_MPLS_LABEL.getHeaderWithoutHasMask(),
new DstOfMplsLabelCaseBuilder().build(),
- new DstOfMplsLabelCaseBuilder().setOfMplsLabel(true).build(),
+ new DstOfMplsLabelCaseBuilder().setOfMplsLabel(Empty.getInstance()).build(),
new SrcNxOfMplsLabelCaseBuilder().build(),
- new SrcNxOfMplsLabelCaseBuilder().setOfMplsLabel(true).build(),
+ new SrcNxOfMplsLabelCaseBuilder().setOfMplsLabel(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ETH_DST_CODEC.getHeaderWithoutHasMask(),
new DstOfEthDstCaseBuilder().build(),
- new DstOfEthDstCaseBuilder().setOfEthDst(true).build(),
+ new DstOfEthDstCaseBuilder().setOfEthDst(Empty.getInstance()).build(),
new SrcOfEthDstCaseBuilder().build(),
- new SrcOfEthDstCaseBuilder().setOfEthDst(true).build(),
+ new SrcOfEthDstCaseBuilder().setOfEthDst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ETH_SRC_CODEC.getHeaderWithoutHasMask(),
new DstOfEthSrcCaseBuilder().build(),
- new DstOfEthSrcCaseBuilder().setOfEthSrc(true).build(),
+ new DstOfEthSrcCaseBuilder().setOfEthSrc(Empty.getInstance()).build(),
new SrcOfEthSrcCaseBuilder().build(),
- new SrcOfEthSrcCaseBuilder().setOfEthSrc(true).build(),
+ new SrcOfEthSrcCaseBuilder().setOfEthSrc(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ETH_TYPE_CODEC.getHeaderWithoutHasMask(),
null,
null,
new SrcOfEthTypeCaseBuilder().build(),
- new SrcOfEthTypeCaseBuilder().setOfEthType(true).build()
+ new SrcOfEthTypeCaseBuilder().setOfEthType(Empty.getInstance()).build()
},
{
NiciraMatchCodecs.TUN_IPV4_DST_CODEC.getHeaderWithoutHasMask(),
new DstNxTunIpv4DstCaseBuilder().build(),
- new DstNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(true).build(),
+ new DstNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(Empty.getInstance()).build(),
new SrcNxTunIpv4DstCaseBuilder().build(),
- new SrcNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(true).build(),
+ new SrcNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.TUN_IPV4_SRC_CODEC.getHeaderWithoutHasMask(),
new DstNxTunIpv4SrcCaseBuilder().build(),
- new DstNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(true).build(),
+ new DstNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(Empty.getInstance()).build(),
new SrcNxTunIpv4SrcCaseBuilder().build(),
- new SrcNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(true).build(),
+ new SrcNxTunIpv4SrcCaseBuilder().setNxTunIpv4Src(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSP_CODEC.getHeaderWithoutHasMask(),
new DstNxNspCaseBuilder().build(),
- new DstNxNspCaseBuilder().setNxNspDst(true).build(),
+ new DstNxNspCaseBuilder().setNxNspDst(Empty.getInstance()).build(),
new SrcNxNspCaseBuilder().build(),
- new SrcNxNspCaseBuilder().setNxNspDst(true).build(),
+ new SrcNxNspCaseBuilder().setNxNspDst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSI_CODEC.getHeaderWithoutHasMask(),
new DstNxNsiCaseBuilder().build(),
- new DstNxNsiCaseBuilder().setNxNsiDst(true).build(),
+ new DstNxNsiCaseBuilder().setNxNsiDst(Empty.getInstance()).build(),
new SrcNxNsiCaseBuilder().build(),
- new SrcNxNsiCaseBuilder().setNxNsiDst(true).build(),
+ new SrcNxNsiCaseBuilder().setNxNsiDst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSC1_CODEC.getHeaderWithoutHasMask(),
new DstNxNshc1CaseBuilder().build(),
- new DstNxNshc1CaseBuilder().setNxNshc1Dst(true).build(),
+ new DstNxNshc1CaseBuilder().setNxNshc1Dst(Empty.getInstance()).build(),
new SrcNxNshc1CaseBuilder().build(),
- new SrcNxNshc1CaseBuilder().setNxNshc1Dst(true).build(),
+ new SrcNxNshc1CaseBuilder().setNxNshc1Dst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSC2_CODEC.getHeaderWithoutHasMask(),
new DstNxNshc2CaseBuilder().build(),
- new DstNxNshc2CaseBuilder().setNxNshc2Dst(true).build(),
+ new DstNxNshc2CaseBuilder().setNxNshc2Dst(Empty.getInstance()).build(),
new SrcNxNshc2CaseBuilder().build(),
- new SrcNxNshc2CaseBuilder().setNxNshc2Dst(true).build(),
+ new SrcNxNshc2CaseBuilder().setNxNshc2Dst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSC3_CODEC.getHeaderWithoutHasMask(),
new DstNxNshc3CaseBuilder().build(),
- new DstNxNshc3CaseBuilder().setNxNshc3Dst(true).build(),
+ new DstNxNshc3CaseBuilder().setNxNshc3Dst(Empty.getInstance()).build(),
new SrcNxNshc3CaseBuilder().build(),
- new SrcNxNshc3CaseBuilder().setNxNshc3Dst(true).build(),
+ new SrcNxNshc3CaseBuilder().setNxNshc3Dst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSC4_CODEC.getHeaderWithoutHasMask(),
new DstNxNshc4CaseBuilder().build(),
- new DstNxNshc4CaseBuilder().setNxNshc4Dst(true).build(),
+ new DstNxNshc4CaseBuilder().setNxNshc4Dst(Empty.getInstance()).build(),
new SrcNxNshc4CaseBuilder().build(),
- new SrcNxNshc4CaseBuilder().setNxNshc4Dst(true).build(),
+ new SrcNxNshc4CaseBuilder().setNxNshc4Dst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSH_FLAGS_CODEC.getHeaderWithoutHasMask(),
new DstNxNshFlagsCaseBuilder().build(),
- new DstNxNshFlagsCaseBuilder().setNxNshFlags(true).build(),
+ new DstNxNshFlagsCaseBuilder().setNxNshFlags(Empty.getInstance()).build(),
new SrcNxNshFlagsCaseBuilder().build(),
- new SrcNxNshFlagsCaseBuilder().setNxNshFlags(true).build(),
+ new SrcNxNshFlagsCaseBuilder().setNxNshFlags(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSH_TTL_CODEC.getHeaderWithoutHasMask(),
new DstNxNshTtlCaseBuilder().build(),
- new DstNxNshTtlCaseBuilder().setNxNshTtl(true).build(),
+ new DstNxNshTtlCaseBuilder().setNxNshTtl(Empty.getInstance()).build(),
new SrcNxNshTtlCaseBuilder().build(),
- new SrcNxNshTtlCaseBuilder().setNxNshTtl(true).build(),
+ new SrcNxNshTtlCaseBuilder().setNxNshTtl(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSH_MDTYPE_CODEC.getHeaderWithoutHasMask(),
null,
null,
new SrcNxNshMdtypeCaseBuilder().build(),
- new SrcNxNshMdtypeCaseBuilder().setNxNshMdtype(true).build(),
+ new SrcNxNshMdtypeCaseBuilder().setNxNshMdtype(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.NSH_NP_CODEC.getHeaderWithoutHasMask(),
null,
null,
new SrcNxNshNpCaseBuilder().build(),
- new SrcNxNshNpCaseBuilder().setNxNshNp(true).build(),
+ new SrcNxNshNpCaseBuilder().setNxNshNp(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.IP_SRC_CODEC.getHeaderWithoutHasMask(),
new DstOfIpSrcCaseBuilder().build(),
- new DstOfIpSrcCaseBuilder().setOfIpSrc(true).build(),
+ new DstOfIpSrcCaseBuilder().setOfIpSrc(Empty.getInstance()).build(),
new SrcOfIpSrcCaseBuilder().build(),
- new SrcOfIpSrcCaseBuilder().setOfIpSrc(true).build(),
+ new SrcOfIpSrcCaseBuilder().setOfIpSrc(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.IP_DST_CODEC.getHeaderWithoutHasMask(),
new DstOfIpDstCaseBuilder().build(),
- new DstOfIpDstCaseBuilder().setOfIpDst(true).build(),
+ new DstOfIpDstCaseBuilder().setOfIpDst(Empty.getInstance()).build(),
new SrcOfIpDstCaseBuilder().build(),
- new SrcOfIpDstCaseBuilder().setOfIpDst(true).build(),
+ new SrcOfIpDstCaseBuilder().setOfIpDst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.IPV6_SRC_CODEC.getHeaderWithoutHasMask(),
new DstNxIpv6SrcCaseBuilder().build(),
- new DstNxIpv6SrcCaseBuilder().setNxIpv6Src(true).build(),
+ new DstNxIpv6SrcCaseBuilder().setNxIpv6Src(Empty.getInstance()).build(),
new SrcNxIpv6SrcCaseBuilder().build(),
- new SrcNxIpv6SrcCaseBuilder().setNxIpv6Src(true).build(),
+ new SrcNxIpv6SrcCaseBuilder().setNxIpv6Src(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.IPV6_DST_CODEC.getHeaderWithoutHasMask(),
new DstNxIpv6DstCaseBuilder().build(),
- new DstNxIpv6DstCaseBuilder().setNxIpv6Dst(true).build(),
+ new DstNxIpv6DstCaseBuilder().setNxIpv6Dst(Empty.getInstance()).build(),
new SrcNxIpv6DstCaseBuilder().build(),
- new SrcNxIpv6DstCaseBuilder().setNxIpv6Dst(true).build(),
+ new SrcNxIpv6DstCaseBuilder().setNxIpv6Dst(Empty.getInstance()).build(),
},
{
NiciraMatchCodecs.ICMP_TYPE_CODEC.getHeaderWithoutHasMask(),
new DstOfIcmpTypeCaseBuilder().build(),
- new DstOfIcmpTypeCaseBuilder().setOfIcmpType(true).build(),
+ new DstOfIcmpTypeCaseBuilder().setOfIcmpType(Empty.getInstance()).build(),
null,
null
},
});
}
-}
\ No newline at end of file
+}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.output.reg.grouping.nx.output.reg.Src;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcNxTunIdCase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcNxTunIdCaseBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
@RunWith(MockitoJUnitRunner.class)
public class OutputReg2ConvertorTest {
private static final int OFS_N_BITS = 1;
private static final int MAX_LEN = 2;
- private static final SrcNxTunIdCase SRC_NX_TUN_ID_CASE = new SrcNxTunIdCaseBuilder().setNxTunId(true).build();
+ private static final SrcNxTunIdCase SRC_NX_TUN_ID_CASE = new SrcNxTunIdCaseBuilder()
+ .setNxTunId(Empty.getInstance()).build();
@Mock
private NxActionOutputRegNodesNodeGroupBucketsBucketActionsCase actionsCase;
((NxActionOutputRegNotifDirectStatisticsUpdateWriteActionsCase) actionResult5)
.getNxOutputReg().getSrc().getSrcChoice());
}
-}
\ No newline at end of file
+}
LOG.trace("Flow or group pushed to the node: {} with transaction id : {} is {}",
data.getDatapathId(), data.getXid(),
experimenterMessageCase.getSalAddMessageData().getBundleInnerMessage());
- if (innerMessage.getImplementedInterface().equals(BundleAddFlowCase.class)
- || innerMessage.getImplementedInterface().equals(BundleUpdateFlowCase.class)
- || innerMessage.getImplementedInterface().equals(BundleRemoveFlowCase.class)) {
+ if (innerMessage.implementedInterface().equals(BundleAddFlowCase.class)
+ || innerMessage.implementedInterface().equals(BundleUpdateFlowCase.class)
+ || innerMessage.implementedInterface().equals(BundleRemoveFlowCase.class)) {
dataBuilder.setBundleInnerMessage(convertBundleFlowCase(innerMessage, data));
- } else if (innerMessage.getImplementedInterface().equals(BundleAddGroupCase.class)
- || innerMessage.getImplementedInterface().equals(BundleUpdateGroupCase.class)
- || innerMessage.getImplementedInterface().equals(BundleRemoveGroupCase.class)) {
+ } else if (innerMessage.implementedInterface().equals(BundleAddGroupCase.class)
+ || innerMessage.implementedInterface().equals(BundleUpdateGroupCase.class)
+ || innerMessage.implementedInterface().equals(BundleRemoveGroupCase.class)) {
dataBuilder.setBundleInnerMessage(convertBundleGroupCase(innerMessage, data));
- } else if (innerMessage.getImplementedInterface().equals(BundleUpdatePortCase.class)) {
+ } else if (innerMessage.implementedInterface().equals(BundleUpdatePortCase.class)) {
dataBuilder.setBundleInnerMessage(convertBundlePortCase(innerMessage, data));
} else {
throw new ConversionException("Unsupported inner message");
private BundleFlowModCase convertBundleFlowCase(final BundleInnerMessage messageCase,
final XidConvertorData data) throws ConversionException {
Optional<List<FlowModInputBuilder>> flowModInputs = Optional.empty();
- final Class clazz = messageCase.getImplementedInterface();
+ final Class clazz = messageCase.implementedInterface();
if (clazz.equals(BundleAddFlowCase.class)) {
flowModInputs = CONVERTER_EXECUTOR.convert(
new AddFlowInputBuilder(((BundleAddFlowCase) messageCase).getAddFlowCaseData()).build(), data);
private BundleGroupModCase convertBundleGroupCase(final BundleInnerMessage messageCase,
final XidConvertorData data) throws ConversionException {
Optional<GroupModInputBuilder> groupModInput = Optional.empty();
- final Class clazz = messageCase.getImplementedInterface();
+ final Class clazz = messageCase.implementedInterface();
if (clazz.equals(BundleAddGroupCase.class)) {
groupModInput = CONVERTER_EXECUTOR.convert(
new AddGroupInputBuilder(((BundleAddGroupCase) messageCase).getAddGroupCaseData()).build(), data);
private BundlePortModCase convertBundlePortCase(final BundleInnerMessage messageCase,
final XidConvertorData data) throws ConversionException {
Optional<PortModInput> portModInput = Optional.empty();
- final Class<?> clazz = messageCase.getImplementedInterface();
+ final Class<?> clazz = messageCase.implementedInterface();
if (clazz.equals(BundleUpdatePortCase.class)) {
portModInput = CONVERTER_EXECUTOR.convert(new PortBuilder(
((BundleUpdatePortCase) messageCase).getUpdatePortCaseData().getPort().getPort().get(0)).build(),
}
private void serializeInnerMessage(final BundleInnerMessage message, final ByteBuf outBuffer) {
- final Class clazz = message.getImplementedInterface();
+ final Class clazz = message.implementedInterface();
if (clazz.equals(BundleFlowModCase.class)) {
OFSerializer<FlowMod> serializer = serializerRegistry.getSerializer(
new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, FlowModInput.class));
original.getSalAddMessageData().getFlags().isOrdered()),
converted.getOnfAddMessageGroupingData().getFlags());
Assert.assertEquals("Wrong inner message conversion", clazz,
- converted.getOnfAddMessageGroupingData().getBundleInnerMessage().getImplementedInterface());
+ converted.getOnfAddMessageGroupingData().getBundleInnerMessage().implementedInterface());
if (withProperty) {
final BundlePropertyExperimenter originalProperty = (BundlePropertyExperimenter) original
.getSalAddMessageData().getBundleProperty().get(0).getBundlePropertyEntry();
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>3.0.6</version>
+ <version>4.0.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>3.0.6</version>
+ <version>4.0.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
LOG.debug("OF header msg received");
if (alienMessageListener != null && alienMessageListener.onAlienMessage((OfHeader) message)) {
- LOG.debug("Alien message {} received", message.getImplementedInterface());
+ LOG.debug("Alien message {} received", message.implementedInterface());
} else if (outputManager == null || !outputManager.onMessage((OfHeader) message)
|| message instanceof EchoOutput) {
final RpcResponseKey key = createRpcResponseKey((OfHeader) message);
}
private static RpcResponseKey createRpcResponseKey(final OfHeader message) {
- return new RpcResponseKey(message.getXid(), message.getImplementedInterface().getName());
+ return new RpcResponseKey(message.getXid(), message.implementedInterface().getName());
}
@Override
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table.features._case.multipart.request.table.features.TableFeaturesBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.table.features.properties.grouping.TableFeatureProperties;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.table.features.properties.grouping.TableFeaturePropertiesBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Translates MultipartRequestInput messages.
private MultipartRequestDescCase setDesc(ByteBuf input) {
MultipartRequestDescCaseBuilder caseBuilder = new MultipartRequestDescCaseBuilder();
MultipartRequestDescBuilder descBuilder = new MultipartRequestDescBuilder();
- descBuilder.setEmpty(true);
+ descBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestDesc(descBuilder.build());
return caseBuilder.build();
}
private MultipartRequestPortDescCase setPortDesc(ByteBuf input) {
MultipartRequestPortDescCaseBuilder caseBuilder = new MultipartRequestPortDescCaseBuilder();
MultipartRequestPortDescBuilder portBuilder = new MultipartRequestPortDescBuilder();
- portBuilder.setEmpty(true);
+ portBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestPortDesc(portBuilder.build());
return caseBuilder.build();
}
private MultipartRequestGroupDescCase setGroupDesc(ByteBuf input) {
MultipartRequestGroupDescCaseBuilder caseBuilder = new MultipartRequestGroupDescCaseBuilder();
MultipartRequestGroupDescBuilder groupBuilder = new MultipartRequestGroupDescBuilder();
- groupBuilder.setEmpty(true);
+ groupBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestGroupDesc(groupBuilder.build());
return caseBuilder.build();
}
private MultipartRequestGroupFeaturesCase setGroupFeatures(ByteBuf input) {
MultipartRequestGroupFeaturesCaseBuilder caseBuilder = new MultipartRequestGroupFeaturesCaseBuilder();
MultipartRequestGroupFeaturesBuilder groupBuilder = new MultipartRequestGroupFeaturesBuilder();
- groupBuilder.setEmpty(true);
+ groupBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestGroupFeatures(groupBuilder.build());
return caseBuilder.build();
}
private MultipartRequestMeterFeaturesCase setMeterFeatures(ByteBuf input) {
MultipartRequestMeterFeaturesCaseBuilder caseBuilder = new MultipartRequestMeterFeaturesCaseBuilder();
MultipartRequestMeterFeaturesBuilder meterBuilder = new MultipartRequestMeterFeaturesBuilder();
- meterBuilder.setEmpty(true);
+ meterBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestMeterFeatures(meterBuilder.build());
return caseBuilder.build();
}
private MultipartRequestTableCase setTable(ByteBuf input) {
MultipartRequestTableCaseBuilder caseBuilder = new MultipartRequestTableCaseBuilder();
MultipartRequestTableBuilder tableBuilder = new MultipartRequestTableBuilder();
- tableBuilder.setEmpty(true);
+ tableBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestTable(tableBuilder.build());
return caseBuilder.build();
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.port.stats._case.MultipartRequestPortStatsBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.queue._case.MultipartRequestQueueBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table._case.MultipartRequestTableBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Translates MultipartRequestInput messages.
private MultipartRequestTableCase setTable(ByteBuf input) {
MultipartRequestTableCaseBuilder caseBuilder = new MultipartRequestTableCaseBuilder();
MultipartRequestTableBuilder tableBuilder = new MultipartRequestTableBuilder();
- tableBuilder.setEmpty(true);
+ tableBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestTable(tableBuilder.build());
return caseBuilder.build();
}
private MultipartRequestDescCase setDesc(ByteBuf input) {
MultipartRequestDescCaseBuilder caseBuilder = new MultipartRequestDescCaseBuilder();
MultipartRequestDescBuilder descBuilder = new MultipartRequestDescBuilder();
- descBuilder.setEmpty(true);
+ descBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestDesc(descBuilder.build());
return caseBuilder.build();
}
*/
public void messageToBuffer(short version, ByteBuf out, DataObject message) {
OFSerializer<DataObject> serializer = registry.getSerializer(
- new MessageTypeKey<>(version, message.getImplementedInterface()));
+ new MessageTypeKey<>(version, message.implementedInterface()));
serializer.serialize(message, out);
}
}
public MessageTypeKey<?> make(Action entry) {
if (entry.getExperimenterId() != null) {
return new ActionSerializerKey<>(getVersion(),
- (Class<ActionChoice>) entry.getActionChoice().getImplementedInterface(),
+ (Class<ActionChoice>) entry.getActionChoice().implementedInterface(),
entry.getExperimenterId().getValue());
}
return new ActionSerializerKey<>(getVersion(),
- (Class<ActionChoice>) entry.getActionChoice().getImplementedInterface(), null);
+ (Class<ActionChoice>) entry.getActionChoice().implementedInterface(), null);
}
};
}
public MessageTypeKey<?> make(Instruction entry) {
if (entry.getExperimenterId() != null) {
return new InstructionSerializerKey<>(getVersion(),
- (Class<InstructionChoice>) entry.getInstructionChoice().getImplementedInterface(),
+ (Class<InstructionChoice>) entry.getInstructionChoice().implementedInterface(),
entry.getExperimenterId().getValue());
}
return new InstructionSerializerKey<>(getVersion(),
- (Class<InstructionChoice>) entry.getInstructionChoice().getImplementedInterface(), null);
+ (Class<InstructionChoice>) entry.getInstructionChoice().implementedInterface(), null);
}
};
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestDescCase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestDescCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.desc._case.MultipartRequestDescBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for MultipartRequestDescInputMessageFactory.
private static MultipartRequestDescCase createRequestDesc() {
MultipartRequestDescCaseBuilder caseBuilder = new MultipartRequestDescCaseBuilder();
MultipartRequestDescBuilder builder = new MultipartRequestDescBuilder();
- builder.setEmpty(true);
+ builder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestDesc(builder.build());
return caseBuilder.build();
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.MultipartRequestBody;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestDescCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.desc._case.MultipartRequestDescBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for OF10StatsRequestInputDescFactory.
private static MultipartRequestBody createMultipartRequestBody() {
MultipartRequestDescCaseBuilder caseBuilder = new MultipartRequestDescCaseBuilder();
MultipartRequestDescBuilder descBuilder = new MultipartRequestDescBuilder();
- descBuilder.setEmpty(true);
+ descBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestDesc(descBuilder.build());
return caseBuilder.build();
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.MultipartRequestBody;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestTableCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table._case.MultipartRequestTableBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for OF10StatsRequestInputTableFactory.
private static MultipartRequestBody createMultipartRequestBody() {
MultipartRequestTableCaseBuilder caseBuilder = new MultipartRequestTableCaseBuilder();
MultipartRequestTableBuilder tableBuilder = new MultipartRequestTableBuilder();
- tableBuilder.setEmpty(true);
+ tableBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestTable(tableBuilder.build());
return caseBuilder.build();
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartRequestInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestGroupDescCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.group.desc._case.MultipartRequestGroupDescBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for MultipartRequestGroupDesc.
builder.setFlags(new MultipartRequestFlags(false));
MultipartRequestGroupDescCaseBuilder caseBuilder = new MultipartRequestGroupDescCaseBuilder();
MultipartRequestGroupDescBuilder descBuilder = new MultipartRequestGroupDescBuilder();
- descBuilder.setEmpty(true);
+ descBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestGroupDesc(descBuilder.build());
builder.setMultipartRequestBody(caseBuilder.build());
MultipartRequestInput message = builder.build();
* 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.protocol.impl.serialization.factories.multipart;
import io.netty.buffer.ByteBuf;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartRequestInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestGroupFeaturesCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.group.features._case.MultipartRequestGroupFeaturesBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for MultipartRequestGroupFeatures.
builder.setFlags(new MultipartRequestFlags(false));
MultipartRequestGroupFeaturesCaseBuilder caseBuilder = new MultipartRequestGroupFeaturesCaseBuilder();
MultipartRequestGroupFeaturesBuilder featuresBuilder = new MultipartRequestGroupFeaturesBuilder();
- featuresBuilder.setEmpty(true);
+ featuresBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestGroupFeatures(featuresBuilder.build());
builder.setMultipartRequestBody(caseBuilder.build());
MultipartRequestInput message = builder.build();
* 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.protocol.impl.serialization.factories.multipart;
import io.netty.buffer.ByteBuf;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartRequestInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestMeterFeaturesCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.meter.features._case.MultipartRequestMeterFeaturesBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for MultipartRequestMeterFeatures.
builder.setFlags(new MultipartRequestFlags(false));
MultipartRequestMeterFeaturesCaseBuilder caseBuilder = new MultipartRequestMeterFeaturesCaseBuilder();
MultipartRequestMeterFeaturesBuilder featuresBuilder = new MultipartRequestMeterFeaturesBuilder();
- featuresBuilder.setEmpty(true);
+ featuresBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestMeterFeatures(featuresBuilder.build());
builder.setMultipartRequestBody(caseBuilder.build());
MultipartRequestInput message = builder.build();
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartRequestInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestPortDescCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.port.desc._case.MultipartRequestPortDescBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for MultipartRequestPortDesc.
builder.setFlags(new MultipartRequestFlags(false));
MultipartRequestPortDescCaseBuilder caseBuilder = new MultipartRequestPortDescCaseBuilder();
MultipartRequestPortDescBuilder descBuilder = new MultipartRequestPortDescBuilder();
- descBuilder.setEmpty(true);
+ descBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestPortDesc(descBuilder.build());
builder.setMultipartRequestBody(caseBuilder.build());
MultipartRequestInput message = builder.build();
* 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.protocol.impl.serialization.factories.multipart;
import io.netty.buffer.ByteBuf;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartRequestInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestTableCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table._case.MultipartRequestTableBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
/**
* Unit tests for MultipartRequestTable.
builder.setFlags(new MultipartRequestFlags(false));
MultipartRequestTableCaseBuilder caseBuilder = new MultipartRequestTableCaseBuilder();
MultipartRequestTableBuilder tablesBuilder = new MultipartRequestTableBuilder();
- tablesBuilder.setEmpty(true);
+ tablesBuilder.setEmpty(Empty.getInstance());
caseBuilder.setMultipartRequestTable(tablesBuilder.build());
builder.setMultipartRequestBody(caseBuilder.build());
MultipartRequestInput message = builder.build();
package org.opendaylight.openflowplugin.impl;
import org.opendaylight.mdsal.binding.api.DataBroker;
+import org.opendaylight.mdsal.binding.api.TransactionChain;
+import org.opendaylight.mdsal.binding.api.TransactionChainListener;
import org.opendaylight.mdsal.binding.spi.ForwardingDataBroker;
/**
*
* @author Michael Vorburger.ch
*/
+// FIXME: this should not be necessary
public class ForwardingPingPongDataBroker extends ForwardingDataBroker implements PingPongDataBroker {
private final DataBroker delegate;
protected DataBroker delegate() {
return delegate;
}
+
+ @Override
+ public TransactionChain createTransactionChain(final TransactionChainListener listener) {
+ return delegate().createMergingTransactionChain(listener);
+ }
}
.MultipartReply) message).getMultipartReplyBody());
}
- LOG.debug("Failed to translate {} for node {}.", message.getImplementedInterface(), deviceInfo);
+ LOG.debug("Failed to translate {} for node {}.", message.implementedInterface(), deviceInfo);
return Optional.empty();
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.NonZeroUint32Type;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig;
import org.opendaylight.yangtools.yang.binding.Augmentation;
-import org.opendaylight.yangtools.yang.binding.DataContainer;
public class OpenFlowProviderConfigImpl implements OpenflowProviderConfig {
private final ConfigurationService service;
return null;
}
- @Override
- public Class<? extends DataContainer> getImplementedInterface() {
- return OpenflowProviderConfig.class;
- }
-
@Override
public Integer getDeviceConnectionRateLimitPerMin() {
return service.getProperty(ConfigurationProperty.DEVICE_CONNECTION_RATE_LIMIT_PER_MIN.toString(),
@Override
public void processReply(final OfHeader ofHeader) {
messageSpy.spyMessage(
- ofHeader.getImplementedInterface(),
+ ofHeader.implementedInterface(),
ofHeader instanceof Error
? MessageSpy.StatisticsGroup.FROM_SWITCH_PUBLISHED_FAILURE
: MessageSpy.StatisticsGroup.FROM_SWITCH_PUBLISHED_SUCCESS);
@Override
public void processReply(final Xid xid, final List<? extends OfHeader> ofHeaderList) {
ofHeaderList.forEach(header -> messageSpy.spyMessage(
- header.getImplementedInterface(),
+ header.implementedInterface(),
header instanceof Error
? MessageSpy.StatisticsGroup.FROM_SWITCH_PUBLISHED_FAILURE
: MessageSpy.StatisticsGroup.FROM_SWITCH_PUBLISHED_SUCCESS));
@Override
@SuppressWarnings("checkstyle:IllegalCatch")
public void processPortStatusMessage(final PortStatusMessage portStatus) {
- messageSpy.spyMessage(portStatus.getImplementedInterface(), MessageSpy.StatisticsGroup
+ messageSpy.spyMessage(portStatus.implementedInterface(), MessageSpy.StatisticsGroup
.FROM_SWITCH_PUBLISHED_SUCCESS);
if (initialized.get()) {
public void processPacketInMessage(final PacketInMessage packetInMessage) {
if (isMasterOfDevice()) {
final PacketReceived packetReceived = packetInTranslator.translate(packetInMessage, getDeviceInfo(), null);
- handlePacketInMessage(packetReceived, packetInMessage.getImplementedInterface(), packetReceived.getMatch());
+ handlePacketInMessage(packetReceived, packetInMessage.implementedInterface(), packetReceived.getMatch());
} else {
LOG.debug("Controller is not owner of the device {}, skipping packet_in message", deviceInfo.getLOGValue());
}
final ExperimenterDataOfChoice vendorData = notification.getExperimenterDataOfChoice();
final MessageTypeKey<? extends ExperimenterDataOfChoice> key = new MessageTypeKey<>(
getDeviceInfo().getVersion(),
- (Class<? extends ExperimenterDataOfChoice>) vendorData.getImplementedInterface());
+ (Class<? extends ExperimenterDataOfChoice>) vendorData.implementedInterface());
final ConvertorMessageFromOFJava<ExperimenterDataOfChoice, MessagePath> messageConverter =
extensionConverterProvider.getMessageConverter(key);
if (messageConverter == null) {
LOG.warn("custom converter for {}[OF:{}] not found",
- notification.getExperimenterDataOfChoice().getImplementedInterface(),
+ notification.getExperimenterDataOfChoice().implementedInterface(),
getDeviceInfo().getVersion());
return;
}
// recognize it.
@SuppressFBWarnings("BC_UNCONFIRMED_CAST")
public boolean processAlienMessage(final OfHeader message) {
- final Class<? extends DataContainer> implementedInterface = message.getImplementedInterface();
+ final Class<? extends DataContainer> implementedInterface = message.implementedInterface();
if (org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketInMessage.class
.equals(implementedInterface)) {
final ExperimenterDataOfChoice data = deserializer.deserialize(message);
final MessageTypeKey<? extends ExperimenterDataOfChoice> key = new MessageTypeKey<>(
EncodeConstants.OF13_VERSION_ID,
- (Class<? extends ExperimenterDataOfChoice>) data.getImplementedInterface());
+ (Class<? extends ExperimenterDataOfChoice>) data.implementedInterface());
final ConvertorMessageFromOFJava<ExperimenterDataOfChoice, MessagePath> convertor = OFSessionUtil
.getExtensionConvertorProvider()
})
.orElseGet(() -> {
LOG.warn("Serializer for match entry {} for version {} not found.",
- extension.getExtension().getImplementedInterface(),
+ extension.getExtension().implementedInterface(),
OFConstants.OFP_VERSION_1_3);
return null;
});
new ExperimenterIdSerializerKey<>(
EncodeConstants.OF13_VERSION_ID,
band.getExperimenter(),
- (Class<Experimenter>) type.getImplementedInterface());
+ (Class<Experimenter>) type.implementedInterface());
try {
final OFSerializer<Experimenter> serializer = registry.getSerializer(key);
final OFSerializer<ExperimenterMessageOfChoice> serializer = Preconditions.checkNotNull(registry)
.getSerializer(new MessageTypeKey<>(
EncodeConstants.OF13_VERSION_ID,
- multipartRequestExperimenter.getExperimenterMessageOfChoice().getImplementedInterface()));
+ multipartRequestExperimenter.getExperimenterMessageOfChoice().implementedInterface()));
serializer.serialize(multipartRequestExperimenter.getExperimenterMessageOfChoice(), byteBuf);
} catch (ClassCastException | IllegalStateException ex) {
.ofNullable(OFSessionUtil.getExtensionConvertorProvider().<ExperimenterMessageOfChoice,
ExperimenterDataOfChoice, ConvertorData>getMessageConverter(new TypeVersionKey<>(
(Class<ExperimenterMessageOfChoice>) multipartRequestExperimenter
- .getExperimenterMessageOfChoice().getImplementedInterface(),
+ .getExperimenterMessageOfChoice().implementedInterface(),
OFConstants.OFP_VERSION_1_3)))
.ifPresent(converter -> {
final OFSerializer<ExperimenterDataOfChoice> serializer = Preconditions.checkNotNull(registry)
final OFSerializer<MultipartRequestBody> serializer = Preconditions.checkNotNull(registry)
.getSerializer(new MessageTypeKey<>(
EncodeConstants.OF13_VERSION_ID,
- multipartRequestBody.getImplementedInterface()));
+ multipartRequestBody.implementedInterface()));
serializer.serialize(multipartRequestBody, outBuffer);
outBuffer.setShort(index + 2, outBuffer.writerIndex() - index);
}
private static MultipartType getMultipartType(final MultipartRequestBody multipartRequestBody) {
- final Class<? extends DataContainer> clazz = multipartRequestBody.getImplementedInterface();
+ final Class<? extends DataContainer> clazz = multipartRequestBody.implementedInterface();
final MultipartType multipartType = MultipartRequestDesc.class.equals(clazz) ? MultipartType.OFPMPDESC
: MultipartRequestFlowTableStats.class.equals(clazz) ? MultipartType.OFPMPTABLE
.forEach(property -> {
final Class<? extends TableFeaturePropType> clazz = (Class<? extends TableFeaturePropType>) property
.getTableFeaturePropType()
- .getImplementedInterface();
+ .implementedInterface();
Preconditions.checkNotNull(registry)
.<TableFeaturePropType, OFSerializer<TableFeaturePropType>>getSerializer(
).orElseGet(() -> {
final OFSerializer<Action> serializer = registry.getSerializer(
new MessageTypeKey<>(
- version, (Class<? extends Action>) action.getImplementedInterface()));
+ version, (Class<? extends Action>) action.implementedInterface()));
serializer.serialize(action, outBuffer);
return action;
});
} catch (final IllegalStateException | ClassCastException e) {
- LOG.warn("Serializer for action {} for version {} not found.", action.getImplementedInterface(), version);
+ LOG.warn("Serializer for action {} for version {} not found.", action.implementedInterface(), version);
}
}
).orElseGet(() -> {
final HeaderSerializer<Action> serializer = registry.getSerializer(
new MessageTypeKey<>(
- version, (Class<? extends Action>) action.getImplementedInterface()));
+ version, (Class<? extends Action>) action.implementedInterface()));
serializer.serializeHeader(action, outBuffer);
return action;
});
} catch (final IllegalStateException | ClassCastException e) {
- LOG.warn("Header Serializer for action {} for version {} not found.", action.getImplementedInterface(),
+ LOG.warn("Header Serializer for action {} for version {} not found.", action.implementedInterface(),
version);
}
}
final short version) {
final TypeVersionKey<Action> key =
- new TypeVersionKey<>((Class<? extends Action>) action.getImplementedInterface(), version);
+ new TypeVersionKey<>((Class<? extends Action>) action.implementedInterface(), version);
final ConvertorActionToOFJava<Action, org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action
.rev150203.actions.grouping.Action> converter = provider.getConverter(key);
registry.<Instruction, OFSerializer<Instruction>>getSerializer(
new MessageTypeKey<>(
version,
- (Class<Instruction>) instruction.getImplementedInterface()))
+ (Class<Instruction>) instruction.implementedInterface()))
.serialize(instruction, outBuffer);
}
registry.<Instruction, HeaderSerializer<Instruction>>getSerializer(
new MessageTypeKey<>(
version,
- (Class<Instruction>) instruction.getImplementedInterface()))
+ (Class<Instruction>) instruction.implementedInterface()))
.serializeHeader(instruction, outBuffer);
}
return;
} else if (Service.State.TERMINATED.equals(gatheringState)) {
- LOG.warn("Unexpected response received: xid={}, {}", result.getXid(), result.getImplementedInterface());
+ LOG.warn("Unexpected response received: xid={}, {}", result.getXid(), result.implementedInterface());
return;
}
Preconditions.checkNotNull(input);
final Class<?> requestType = input instanceof DataContainer
- ? ((DataContainer) input).getImplementedInterface()
+ ? ((DataContainer) input).implementedInterface()
: input.getClass();
getMessageSpy().spyMessage(requestType, MessageSpy.StatisticsGroup.TO_SWITCH_ENTERED);
@SuppressWarnings("unchecked")
protected OfHeader buildRequest(Xid xid, SendExperimenterMpRequestInput input) throws ServiceException {
final TypeVersionKey key = new TypeVersionKey<>(
- input.getExperimenterMessageOfChoice().getImplementedInterface(),
+ input.getExperimenterMessageOfChoice().implementedInterface(),
getVersion());
final ConverterMessageToOFJava<ExperimenterMessageOfChoice, ExperimenterDataOfChoice,
final ExperimenterDataOfChoice vendorData = replyBody.getExperimenterDataOfChoice();
final MessageTypeKey<? extends ExperimenterDataOfChoice> key = new MessageTypeKey<>(
getVersion(),
- (Class<? extends ExperimenterDataOfChoice>) vendorData.getImplementedInterface());
+ (Class<? extends ExperimenterDataOfChoice>) vendorData.implementedInterface());
final ConvertorMessageFromOFJava<ExperimenterDataOfChoice, MessagePath> messageConverter =
getExtensionConverterProvider().getMessageConverter(key);
if (messageConverter == null) {
LOG.warn("Custom converter for {}[OF:{}] not found",
- vendorData.getImplementedInterface(),
+ vendorData.implementedInterface(),
getVersion());
finalFuture.set(RpcResultBuilder.<SendExperimenterMpRequestOutput>failed()
.withError(ErrorType.RPC, "Custom converter not found.").build());
@Override
protected OfHeader buildRequest(Xid xid, SendExperimenterInput input) throws ServiceException {
final TypeVersionKey key =
- new TypeVersionKey(input.getExperimenterMessageOfChoice().getImplementedInterface(), getVersion());
+ new TypeVersionKey(input.getExperimenterMessageOfChoice().implementedInterface(), getVersion());
final ConverterMessageToOFJava<ExperimenterMessageOfChoice, ExperimenterDataOfChoice,
ExtensionConvertorData> messageConverter = extensionConverterProvider.getMessageConverter(key);
@Override
protected OfHeader buildRequest(final Xid xid, final Flow input) {
final FlowMessageBuilder flowMessageBuilder = new FlowMessageBuilder(input);
- final Class<? extends DataContainer> clazz = input.getImplementedInterface();
+ final Class<? extends DataContainer> clazz = input.implementedInterface();
if (clazz.equals(AddFlowInput.class)
|| clazz.equals(UpdatedFlow.class)) {
@Override
protected OfHeader buildRequest(final Xid xid, final Group input) {
final GroupMessageBuilder groupMessageBuilder = new GroupMessageBuilder(input);
- final Class<? extends DataContainer> clazz = input.getImplementedInterface();
+ final Class<? extends DataContainer> clazz = input.implementedInterface();
if (clazz.equals(AddGroupInput.class)) {
groupMessageBuilder.setCommand(GroupModCommand.OFPGCADD);
@Override
protected OfHeader buildRequest(final Xid xid, final Meter input) {
final MeterMessageBuilder meterMessageBuilder = new MeterMessageBuilder(input);
- final Class<? extends DataContainer> clazz = input.getImplementedInterface();
+ final Class<? extends DataContainer> clazz = input.implementedInterface();
if (clazz.equals(AddMeterInput.class)
|| clazz.equals(UpdatedMeter.class)) {
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestTableCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table._case.MultipartRequestTableBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableId;
+import org.opendaylight.yangtools.yang.common.Empty;
import org.opendaylight.yangtools.yang.common.RpcResult;
public final class OpendaylightFlowTableStatisticsServiceImpl extends
final MultipartRequestTableCaseBuilder multipartRequestTableCaseBuilder =
new MultipartRequestTableCaseBuilder();
final MultipartRequestTableBuilder multipartRequestTableBuilder = new MultipartRequestTableBuilder();
- multipartRequestTableBuilder.setEmpty(true);
+ multipartRequestTableBuilder.setEmpty(Empty.getInstance());
multipartRequestTableCaseBuilder.setMultipartRequestTable(multipartRequestTableBuilder.build());
// Set request body to main multipart request
@VisibleForTesting
static <T extends BatchChoice> BatchStepType detectBatchStepType(final T batchCase) {
final BatchStepType type;
- final Class<? extends DataContainer> implementedInterface = batchCase.getImplementedInterface();
+ final Class<? extends DataContainer> implementedInterface = batchCase.implementedInterface();
+ // FIXME: use a lookup table instead of this cascade
if (FlatBatchAddFlowCase.class.equals(implementedInterface)) {
type = BatchStepType.FLOW_ADD;
} else if (FlatBatchRemoveFlowCase.class.equals(implementedInterface)) {
return null;
}
- if (implementedInterface.equals(match.getImplementedInterface())) {
+ if (implementedInterface.equals(match.implementedInterface())) {
return implementedInterface.cast(match);
}
</bean>
<service ref="configurationService" interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationService"/>
- <reference id="ppDB" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="pingpong"/>
+ <reference id="ppDB" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
<bean id="pingPongDataBroker" class="org.opendaylight.openflowplugin.impl.ForwardingPingPongDataBroker">
<argument ref="ppDB"/>
</bean>
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(), MultipartRequestDescCase.class);
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(), MultipartRequestDescCase.class);
}
@Test
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(),
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(),
MultipartRequestAggregateCase.class);
}
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(), MultipartRequestTableCase.class);
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(), MultipartRequestTableCase.class);
}
@Test
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(),
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(),
MultipartRequestGroupDescCase.class);
}
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(),
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(),
MultipartRequestGroupFeaturesCase.class);
}
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(),
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(),
MultipartRequestMeterFeaturesCase.class);
}
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(),
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(),
MultipartRequestPortDescCase.class);
}
final MultipartRequestInput mpRqInput =
(MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
checkHeader(mpRqInput, mpType);
- checkEmptyBody(mpRqInput.getMultipartRequestBody().getImplementedInterface(),
+ checkEmptyBody(mpRqInput.getMultipartRequestBody().implementedInterface(),
MultipartRequestExperimenterCase.class);
}
public void testPortStatusMessage() {
final PortStatusMessage mockedPortStatusMessage = mock(PortStatusMessage.class);
final Class dummyClass = Class.class;
- when(mockedPortStatusMessage.getImplementedInterface()).thenReturn(dummyClass);
+ when(mockedPortStatusMessage.implementedInterface()).thenReturn(dummyClass);
final GetFeaturesOutput mockedFeature = mock(GetFeaturesOutput.class);
in.setShort(index, in.writerIndex() - startIndex);
final Instruction instruction = deserializer.deserialize(in);
- assertEquals(ApplyActionsCase.class, instruction.getImplementedInterface());
+ assertEquals(ApplyActionsCase.class, instruction.implementedInterface());
final ApplyActionsCase actionCase = (ApplyActionsCase) instruction;
assertEquals(1, actionCase.getApplyActions().getAction().size());
assertEquals(PopPbbActionCase.class, actionCase.getApplyActions().getAction().get(0)
- .getAction().getImplementedInterface());
+ .getAction().implementedInterface());
assertEquals(0, in.readableBytes());
}
in.writeZero(InstructionConstants.PADDING_IN_ACTIONS_INSTRUCTION);
final Instruction instruction = deserializeInstruction(in);
- assertEquals(ClearActionsCase.class, instruction.getImplementedInterface());
+ assertEquals(ClearActionsCase.class, instruction.implementedInterface());
assertEquals(0, in.readableBytes());
}
in.writeZero(InstructionConstants.PADDING_IN_GOTO_TABLE);
final Instruction instruction = deserializeInstruction(in);
- assertEquals(GoToTableCase.class, instruction.getImplementedInterface());
+ assertEquals(GoToTableCase.class, instruction.implementedInterface());
assertEquals(tableId, ((GoToTableCase) instruction).getGoToTable().getTableId().shortValue());
assertEquals(0, in.readableBytes());
}
in.writeInt(meterId);
final Instruction instruction = deserializeInstruction(in);
- assertEquals(MeterCase.class, instruction.getImplementedInterface());
+ assertEquals(MeterCase.class, instruction.implementedInterface());
assertEquals(meterId, ((MeterCase) instruction).getMeter().getMeterId().getValue().intValue());
assertEquals(0, in.readableBytes());
}
in.setShort(index, in.writerIndex() - startIndex);
final Instruction instruction = deserializer.deserialize(in);
- assertEquals(WriteActionsCase.class, instruction.getImplementedInterface());
+ assertEquals(WriteActionsCase.class, instruction.implementedInterface());
final WriteActionsCase actionCase = (WriteActionsCase) instruction;
assertEquals(1, actionCase.getWriteActions().getAction().size());
assertEquals(PopPbbActionCase.class, actionCase.getWriteActions().getAction().get(0)
- .getAction().getImplementedInterface());
+ .getAction().implementedInterface());
assertEquals(0, in.readableBytes());
}
in.writeBytes(ByteUtil.convertBigIntegerToNBytes(metadataMask, EncodeConstants.SIZE_OF_LONG_IN_BYTES));
final Instruction instruction = deserializeInstruction(in);
- assertEquals(WriteMetadataCase.class, instruction.getImplementedInterface());
+ assertEquals(WriteMetadataCase.class, instruction.implementedInterface());
assertArrayEquals(
ByteUtil
assertEquals(1, message.getInstructions().getInstruction().size());
final Instruction instruction = message.getInstructions().getInstruction().get(0).getInstruction();
- assertEquals(ApplyActionsCase.class, instruction.getImplementedInterface());
+ assertEquals(ApplyActionsCase.class, instruction.implementedInterface());
final ApplyActionsCase applyActions = (ApplyActionsCase) instruction;
assertEquals(1, applyActions.getApplyActions().getAction().size());
assertEquals(PopPbbActionCase.class, applyActions.getApplyActions().getAction().get(0)
- .getAction().getImplementedInterface());
+ .getAction().implementedInterface());
}
}
assertEquals(WATCH_PORT, bucket.getWatchPort().intValue());
assertEquals(WATCH_GROUP, bucket.getWatchGroup().intValue());
assertEquals(1, bucket.getAction().size());
- assertEquals(PopPbbActionCase.class, bucket.getAction().get(0).getAction().getImplementedInterface());
+ assertEquals(PopPbbActionCase.class, bucket.getAction().get(0).getAction().implementedInterface());
}
}
// Drop band
final MeterBandHeader dropHeader = meterBandHeader.get(0);
- assertEquals(Drop.class, dropHeader.getBandType().getImplementedInterface());
+ assertEquals(Drop.class, dropHeader.getBandType().implementedInterface());
assertTrue(dropHeader.getMeterBandTypes().getFlags().isOfpmbtDrop());
final Drop drop = (Drop) dropHeader.getBandType();
// Dscp band
final MeterBandHeader dscpHeader = meterBandHeader.get(1);
- assertEquals(DscpRemark.class, dscpHeader.getBandType().getImplementedInterface());
+ assertEquals(DscpRemark.class, dscpHeader.getBandType().implementedInterface());
assertTrue(dscpHeader.getMeterBandTypes().getFlags().isOfpmbtDscpRemark());
final DscpRemark dscpRemark = (DscpRemark) dscpHeader.getBandType();
final Instruction instruction =
flowAndStatisticsMapList.getInstructions().getInstruction().get(0).getInstruction();
- assertEquals(ApplyActionsCase.class, instruction.getImplementedInterface());
+ assertEquals(ApplyActionsCase.class, instruction.implementedInterface());
final ApplyActionsCase applyActions = (ApplyActionsCase) instruction;
assertEquals(1, applyActions.getApplyActions().getAction().size());
assertEquals(PopPbbActionCase.class, applyActions.getApplyActions().getAction().get(0)
- .getAction().getImplementedInterface());
+ .getAction().implementedInterface());
final Instruction instruction1 =
flowAndStatisticsMapList.getInstructions().getInstruction().get(1).getInstruction();
- assertEquals(WriteActionsCase.class, instruction1.getImplementedInterface());
+ assertEquals(WriteActionsCase.class, instruction1.implementedInterface());
final WriteActionsCase writeActions = (WriteActionsCase) instruction1;
assertEquals(1, writeActions.getWriteActions().getAction().size());
assertEquals(PopVlanActionCase.class, writeActions.getWriteActions().getAction().get(0)
- .getAction().getImplementedInterface());
+ .getAction().implementedInterface());
}
@Override
final Instruction instruction =
flowAndStatisticsMapList.getInstructions().getInstruction().get(0).getInstruction();
- assertEquals(ApplyActionsCase.class, instruction.getImplementedInterface());
+ assertEquals(ApplyActionsCase.class, instruction.implementedInterface());
final ApplyActionsCase applyActions = (ApplyActionsCase) instruction;
assertEquals(1, applyActions.getApplyActions().getAction().size());
assertEquals(PopPbbActionCase.class, applyActions.getApplyActions().getAction().get(0)
- .getAction().getImplementedInterface());
+ .getAction().implementedInterface());
}
}
assertEquals(MAX_ENTRIES, reply.getTableFeatures().get(0).getMaxEntries().longValue());
assertEquals(MAX_ENTRIES, reply.getTableFeatures().get(0).getMaxEntries().longValue());
assertEquals(Instructions.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_INSTRUCTIONS_MISS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(InstructionsMiss.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_NEXT_TABLES);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(NextTable.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_NEXT_TABLES_MISS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(NextTableMiss.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_WRITE_ACTIONS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(WriteActions.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_WRITE_ACTIONS_MISS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(WriteActionsMiss.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_APPLY_ACTIONS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(ApplyActions.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_APPLY_ACTIONS_MISS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(ApplyActionsMiss.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_MATCH);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(Match.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_WILDCARDS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(Wildcards.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_WRITE_SETFIELD);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(WriteSetfield.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_WRITE_SETFIELD_MISS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(WriteSetfieldMiss.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_APPLY_SETFIELD);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(ApplySetfield.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
writeValues(buffer, OFPTFPT_APPLY_SETFIELD_MISS);
reply = (MultipartReplyTableFeatures) deserializeMultipart(buffer);
assertEquals(ApplySetfieldMiss.class, reply.getTableFeatures().get(0).getTableProperties()
- .getTableFeatureProperties().get(0).getTableFeaturePropType().getImplementedInterface());
+ .getTableFeatureProperties().get(0).getTableFeaturePropType().implementedInterface());
assertEquals(0, buffer.readableBytes());
}
public class DummyExperimenter implements ExperimenterMessageOfChoice {
@Override
- public Class<? extends DataContainer> getImplementedInterface() {
+ public Class<DummyExperimenter> implementedInterface() {
return DummyExperimenter.class;
}
}
-}
\ No newline at end of file
+}
final PacketOutInput input = (PacketOutInput) request;
assertEquals(OFConstants.OFP_NO_BUFFER, input.getBufferId());
assertEquals(1, input.getAction().size());
- assertEquals(OutputActionCase.class, input.getAction().get(0).getActionChoice().getImplementedInterface());
+ assertEquals(OutputActionCase.class, input.getAction().get(0).getActionChoice().implementedInterface());
final OutputActionCase actionChoice = (OutputActionCase) input.getAction().get(0).getActionChoice();
assertEquals(1, actionChoice.getOutputAction().getPort().getValue().intValue());
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.ExperimenterInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.experimenter.types.rev151020.experimenter.core.message.ExperimenterMessageOfChoice;
-import org.opendaylight.yangtools.yang.binding.DataContainer;
/**
* Test for {@link org.opendaylight.openflowplugin.impl.services.sal.SalExperimenterMessageServiceImpl}.
private static class DummyExperimenter implements ExperimenterMessageOfChoice {
@Override
- public Class<? extends DataContainer> getImplementedInterface() {
+ public Class<DummyExperimenter> implementedInterface() {
return DummyExperimenter.class;
}
}
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(MultipartRequest.class, ofHeader.getImplementedInterface());
+ assertEquals(MultipartRequest.class, ofHeader.implementedInterface());
final MultipartRequestFlowAggregateStats result =
(MultipartRequestFlowAggregateStats) ((MultipartRequest) ofHeader)
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(MultipartRequest.class, ofHeader.getImplementedInterface());
+ assertEquals(MultipartRequest.class, ofHeader.implementedInterface());
final MultipartRequestExperimenter result = (MultipartRequestExperimenter) ((MultipartRequest) ofHeader)
.getMultipartRequestBody();
- assertEquals(DummyExperimenter.class, result.getExperimenterMessageOfChoice().getImplementedInterface());
+ assertEquals(DummyExperimenter.class, result.getExperimenterMessageOfChoice().implementedInterface());
}
@Test
.getResult()
.getExperimenterCoreMessageItem()
.get(0)
- .getExperimenterMessageOfChoice().getImplementedInterface());
+ .getExperimenterMessageOfChoice().implementedInterface());
}
-}
\ No newline at end of file
+}
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(FlowMessage.class, ofHeader.getImplementedInterface());
+ assertEquals(FlowMessage.class, ofHeader.implementedInterface());
final FlowMessage result = (FlowMessage) ofHeader;
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(GroupMessage.class, ofHeader.getImplementedInterface());
+ assertEquals(GroupMessage.class, ofHeader.implementedInterface());
final GroupMessage result = (GroupMessage) ofHeader;
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(MeterMessage.class, ofHeader.getImplementedInterface());
+ assertEquals(MeterMessage.class, ofHeader.implementedInterface());
final MeterMessage result = (MeterMessage) ofHeader;
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(PortMessage.class, ofHeader.getImplementedInterface());
+ assertEquals(PortMessage.class, ofHeader.implementedInterface());
final PortMessage result = (PortMessage) ofHeader;
.build();
final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
- assertEquals(MultipartRequest.class, ofHeader.getImplementedInterface());
+ assertEquals(MultipartRequest.class, ofHeader.implementedInterface());
final MultipartRequestTableFeatures result = (MultipartRequestTableFeatures) ((MultipartRequest) ofHeader)
.getMultipartRequestBody();
assertTrue(result.isSuccessful());
assertEquals(XID, result.getResult().getTransactionId().getValue().longValue());
}
-}
\ No newline at end of file
+}
Assert.assertTrue(mpRequest.getMultipartRequestBody() instanceof MultipartRequestTableCase);
final MultipartRequestTableCase mpRequestBody =
(MultipartRequestTableCase) (mpRequest.getMultipartRequestBody());
- Assert.assertTrue(mpRequestBody.getMultipartRequestTable().isEmpty());
+ Assert.assertNotNull(mpRequestBody.getMultipartRequestTable().getEmpty());
}
-}
\ No newline at end of file
+}
final long xidValue = 21L;
Xid xid = new Xid(xidValue);
final OfHeader request = statisticsGatheringService.buildRequest(xid, MultipartType.OFPMPFLOW);
- Assert.assertEquals(MultipartRequestInput.class, request.getImplementedInterface());
+ Assert.assertEquals(MultipartRequestInput.class, request.implementedInterface());
Assert.assertEquals(xidValue, request.getXid().longValue());
Assert.assertNotNull(request);
}
Xid xid = new Xid(xidValue);
for (MultipartType mpType : MultipartType.values()) {
final OfHeader request = statisticsGatheringService.buildRequest(xid, mpType);
- Assert.assertEquals(MultipartRequestInput.class, request.getImplementedInterface());
+ Assert.assertEquals(MultipartRequestInput.class, request.implementedInterface());
Assert.assertEquals(xidValue, request.getXid().longValue());
Assert.assertNotNull(request);
}
}
-}
\ No newline at end of file
+}
final SendBarrierInput barrierInput = BarrierUtil.createSendBarrierInput(NODE_REF);
Assert.assertEquals(NODE_REF, barrierInput.getNode());
- Assert.assertEquals(SendBarrierInput.class, barrierInput.getImplementedInterface());
+ Assert.assertEquals(SendBarrierInput.class, barrierInput.implementedInterface());
}
}
convertor = extensionConvertorProvider.getActionConverter(key);
} else if (action.getActionChoice() != null) {
ActionSerializerKey<?> key = new ActionSerializerKey(EncodeConstants.OF13_VERSION_ID,
- action.getActionChoice().getImplementedInterface(), null);
+ action.getActionChoice().implementedInterface(), null);
convertor = extensionConvertorProvider.getActionConverter(key);
}
return result;
}
- final Class<?> type = source instanceof DataContainer ? ((DataContainer) source).getImplementedInterface()
+ final Class<?> type = source instanceof DataContainer ? ((DataContainer) source).implementedInterface()
: source.getClass();
if (type == null) {
- LOG.warn("Cannot extract type from {}, because getImplementedInterface() returns null", source);
+ LOG.warn("Cannot extract type from {}, because implementedInterface() returns null", source);
return result;
}
final F first = firstOptional.get();
- final Class<?> type = first instanceof DataContainer ? ((DataContainer) first).getImplementedInterface()
+ final Class<?> type = first instanceof DataContainer ? ((DataContainer) first).implementedInterface()
: first.getClass();
if (type == null) {
- LOG.warn("Cannot extract type from {}, because getImplementedInterface() returns null", source);
+ LOG.warn("Cannot extract type from {}, because implementedInterface() returns null", source);
return result;
}
actionBuilder.setOrder(order++);
ActionChoice actionType = action.getActionChoice();
org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action salAction =
- OF_TO_SAL_ACTION.get(actionType.getImplementedInterface());
+ OF_TO_SAL_ACTION.get(actionType.implementedInterface());
actionBuilder.setAction(salAction);
actionList.add(actionBuilder.build());
final TypeVersionKey<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action> key =
new TypeVersionKey<>(
(Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112
- .action.Action>) source.getImplementedInterface(),
+ .action.Action>) source.implementedInterface(),
version);
ExtensionConverterProvider extensionConverterProvider = OFSessionUtil.getExtensionConvertorProvider();
return result;
}
- final Class<?> clazz = source.getImplementedInterface();
+ final Class<?> clazz = source.implementedInterface();
final Optional<ConvertorCase<?, T, D>> caseOptional = Optional
.ofNullable(getCasesForVersion(version).get(clazz));
Action action = ActionExtensionHelper.processAlienAction(actionBuilder.build(), OpenflowVersion.OF13,
ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
assertNotNull(action);
- assertEquals(MockAction.class, action.getImplementedInterface());
+ assertEquals(MockAction.class, action.implementedInterface());
}
private class MockAction implements Action {
@Override
- public Class<? extends DataContainer> getImplementedInterface() {
+ public Class<? extends DataContainer> implementedInterface() {
return MockAction.class;
}
}
.Action action = bucket.getAction().get(0);
Assert.assertEquals("Wrong type", 0, action.getOrder().intValue());
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112"
- + ".action.action.CopyTtlInCase", action.getAction().getImplementedInterface().getName());
+ + ".action.action.CopyTtlInCase", action.getAction().implementedInterface().getName());
// **********************************************
// Test second group desc
action = bucket.getAction().get(0);
Assert.assertEquals("Wrong type", 0, action.getOrder().intValue());
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112"
- + ".action.action.CopyTtlOutCase", action.getAction().getImplementedInterface().getName());
+ + ".action.action.CopyTtlOutCase", action.getAction().implementedInterface().getName());
// Test second action for first bucket of second group desc
action = bucket.getAction().get(1);
Assert.assertEquals("Wrong type", 1, action.getOrder().intValue());
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112"
- + ".action.action.DecNwTtlCase", action.getAction().getImplementedInterface().getName());
+ + ".action.action.DecNwTtlCase", action.getAction().implementedInterface().getName());
// Test third action for first bucket of second group desc
action = bucket.getAction().get(2);
Assert.assertEquals("Wrong type", 2, action.getOrder().intValue());
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112"
- + ".action.action.PopPbbActionCase", action.getAction().getImplementedInterface().getName());
+ + ".action.action.PopPbbActionCase", action.getAction().implementedInterface().getName());
// Test second bucket for second group desc
bucket = stat.getBuckets().getBucket().get(1);
private final class MockMeterBandBuilder implements org.opendaylight.yang.gen.v1.urn.opendaylight.openflow
.protocol.rev130731.meter.band.header.MeterBand {
@Override
- public Class<? extends DataContainer> getImplementedInterface() {
+ public Class<? extends DataContainer> implementedInterface() {
return MockMeterBandBuilder.class;
}
}
org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature
.prop.type.ApplyActionsMiss applyActionsMiss = null;
for (int i = 0; i < tableFeaturePropertieses.size(); i++) {
- if (tableFeaturePropertieses.get(i).getTableFeaturePropType().getImplementedInterface().isAssignableFrom(
+ if (tableFeaturePropertieses.get(i).getTableFeaturePropType().implementedInterface().isAssignableFrom(
org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table
.feature.prop.type.ApplyActionsMiss.class)) {
applyActionsMiss = (org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature
.get(0);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.NextTable",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
NextTable propType = (NextTable) property.getTableFeaturePropType();
List<Short> ids = propType.getTables().getTableIds();
Assert.assertEquals("Wrong next table-id size", 2, ids.size());
property = feature.getTableProperties().getTableFeatureProperties().get(1);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.NextTableMiss",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
NextTableMiss propType2 = (NextTableMiss) property.getTableFeaturePropType();
ids = propType2.getTablesMiss().getTableIds();
Assert.assertEquals("Wrong next table-id size", 1, ids.size());
property = feature.getTableProperties().getTableFeatureProperties().get(2);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.Instructions",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
Instructions propType3 = (Instructions) property.getTableFeaturePropType();
List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list
.Instruction> instructionIds = propType3.getInstructions().getInstruction();
Assert.assertEquals("Wrong instruction-ids size", 2, instructionIds.size());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.WriteActionsCase",
- instructionIds.get(0).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(0).getInstruction().implementedInterface().getName());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.GoToTableCase",
- instructionIds.get(1).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(1).getInstruction().implementedInterface().getName());
property = feature.getTableProperties().getTableFeatureProperties().get(3);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.InstructionsMiss",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
InstructionsMiss propType4 = (InstructionsMiss) property.getTableFeaturePropType();
instructionIds = propType4.getInstructionsMiss().getInstruction();
Assert.assertEquals("Wrong instruction-ids size", 5, instructionIds.size());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.WriteMetadataCase",
- instructionIds.get(0).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(0).getInstruction().implementedInterface().getName());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.ApplyActionsCase",
- instructionIds.get(1).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(1).getInstruction().implementedInterface().getName());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.MeterCase",
- instructionIds.get(2).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(2).getInstruction().implementedInterface().getName());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.ClearActionsCase",
- instructionIds.get(3).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(3).getInstruction().implementedInterface().getName());
Assert.assertEquals("Wrong instruction-id", "org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types."
+ "rev131026.instruction.instruction.GoToTableCase",
- instructionIds.get(4).getInstruction().getImplementedInterface().getName());
+ instructionIds.get(4).getInstruction().implementedInterface().getName());
feature = list.get(1);
Assert.assertEquals("Wrong table-id", 6, feature.getTableId().intValue());
property = feature.getTableProperties().getTableFeatureProperties().get(0);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.Match",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
Match propType5 = (Match) property.getTableFeaturePropType();
List<SetFieldMatch> fieldMatch = propType5.getMatchSetfield().getSetFieldMatch();
Assert.assertEquals("Wrong match-entry-ids size", 2, fieldMatch.size());
property = feature.getTableProperties().getTableFeatureProperties().get(1);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.ApplySetfield",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
ApplySetfield propType6 = (ApplySetfield) property.getTableFeaturePropType();
fieldMatch = propType6.getApplySetfield().getSetFieldMatch();
Assert.assertEquals("Wrong match-entry-ids size", 2, fieldMatch.size());
property = feature.getTableProperties().getTableFeatureProperties().get(2);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.WriteSetfield",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
WriteSetfield propType7 = (WriteSetfield) property.getTableFeaturePropType();
fieldMatch = propType7.getWriteSetfield().getSetFieldMatch();
Assert.assertEquals("Wrong match-entry-ids size", 2, fieldMatch.size());
property = feature.getTableProperties().getTableFeatureProperties().get(3);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.WriteSetfieldMiss",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
WriteSetfieldMiss propType8 = (WriteSetfieldMiss) property.getTableFeaturePropType();
fieldMatch = propType8.getWriteSetfieldMiss().getSetFieldMatch();
Assert.assertEquals("Wrong match-entry-ids size", 2, fieldMatch.size());
property = feature.getTableProperties().getTableFeatureProperties().get(4);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.ApplySetfieldMiss",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
ApplySetfieldMiss propType9 = (ApplySetfieldMiss) property.getTableFeaturePropType();
fieldMatch = propType9.getApplySetfieldMiss().getSetFieldMatch();
Assert.assertEquals("Wrong match-entry-ids size", 2, fieldMatch.size());
property = feature.getTableProperties().getTableFeatureProperties().get(5);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.Wildcards",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
Wildcards propType10 = (Wildcards) property.getTableFeaturePropType();
fieldMatch = propType10.getWildcardSetfield().getSetFieldMatch();
Assert.assertEquals("Wrong match-entry-ids size", 2, fieldMatch.size());
property = feature.getTableProperties().getTableFeatureProperties().get(6);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.ApplyActions",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature.prop
.type.ApplyActions propType11 = (org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
.feature.prop.type.table.feature.prop.type.ApplyActions) property.getTableFeaturePropType();
Assert.assertEquals("Wrong actions-ids size", 3, actionsList.size());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetNwSrcActionCase",
- actionsList.get(0).getAction().getImplementedInterface().getName());
+ actionsList.get(0).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetNwSrcActionCase",
- actionsList.get(1).getAction().getImplementedInterface().getName());
+ actionsList.get(1).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetNwSrcActionCase",
- actionsList.get(2).getAction().getImplementedInterface().getName());
+ actionsList.get(2).getAction().implementedInterface().getName());
property = feature.getTableProperties().getTableFeatureProperties().get(7);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.ApplyActionsMiss",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature.prop
.type.ApplyActionsMiss propType12 = (org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026
.table.feature.prop.type.table.feature.prop.type.ApplyActionsMiss) property.getTableFeaturePropType();
Assert.assertEquals("Wrong actions-ids size", 3, actionsList.size());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.GroupActionCase",
- actionsList.get(0).getAction().getImplementedInterface().getName());
+ actionsList.get(0).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.CopyTtlInCase",
- actionsList.get(1).getAction().getImplementedInterface().getName());
+ actionsList.get(1).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.CopyTtlOutCase",
- actionsList.get(2).getAction().getImplementedInterface().getName());
+ actionsList.get(2).getAction().implementedInterface().getName());
property = feature.getTableProperties().getTableFeatureProperties().get(8);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.WriteActions",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature.prop
.type.WriteActions propType13 = (org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
Assert.assertEquals("Wrong actions-ids size", 3, actionsList.size());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetMplsTtlActionCase",
- actionsList.get(0).getAction().getImplementedInterface().getName());
+ actionsList.get(0).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.DecMplsTtlCase",
- actionsList.get(1).getAction().getImplementedInterface().getName());
+ actionsList.get(1).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PushVlanActionCase",
- actionsList.get(2).getAction().getImplementedInterface().getName());
+ actionsList.get(2).getAction().implementedInterface().getName());
property = feature.getTableProperties().getTableFeatureProperties().get(9);
Assert.assertEquals("Wrong property type", "org.opendaylight.yang.gen.v1.urn.opendaylight.table.types."
+ "rev131026.table.feature.prop.type.table.feature.prop.type.WriteActionsMiss",
- property.getTableFeaturePropType().getImplementedInterface().getName());
+ property.getTableFeaturePropType().implementedInterface().getName());
org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature.prop
.type.WriteActionsMiss propType14 = (org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026
Assert.assertEquals("Wrong actions-ids size", 3, actionsList.size());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PopVlanActionCase",
- actionsList.get(0).getAction().getImplementedInterface().getName());
+ actionsList.get(0).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PushPbbActionCase",
- actionsList.get(1).getAction().getImplementedInterface().getName());
+ actionsList.get(1).getAction().implementedInterface().getName());
Assert.assertEquals("Wrong actions-id",
"org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetFieldCase",
- actionsList.get(2).getAction().getImplementedInterface().getName());
+ actionsList.get(2).getAction().implementedInterface().getName());
}
private static SetNwSrcCase createSetNwSrcAction() {
}
if (action.getActionChoice() instanceof CopyTtlInCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
CopyTtlInCase.class.getName());
}
if (action.getActionChoice() instanceof CopyTtlOutCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
CopyTtlOutCase.class.getName());
}
if (action.getActionChoice() instanceof SetMplsTtlCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
SetMplsTtlCase.class.getName());
}
if (action.getActionChoice() instanceof DecMplsTtlCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
DecMplsTtlCase.class.getName());
}
}
if (action.getActionChoice() instanceof SetQueueCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
SetQueueCase.class.getName());
}
}
if (action.getActionChoice() instanceof PushVlanCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
PushVlanCase.class.getName());
}
if (action.getActionChoice() instanceof PopVlanCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
PopVlanCase.class.getName());
}
if (action.getActionChoice() instanceof SetNwTtlCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
SetNwTtlCase.class.getName());
}
if (action.getActionChoice() instanceof DecNwTtlCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
DecNwTtlCase.class.getName());
}
if (action.getActionChoice() instanceof PushPbbCase) {
}
if (action.getActionChoice() instanceof PopMplsCase) {
- Assert.assertEquals(action.getActionChoice().getImplementedInterface().getName(),
+ Assert.assertEquals(action.getActionChoice().implementedInterface().getName(),
PopMplsCase.class.getName());
}
if (action.getActionChoice() instanceof SetFieldCase) {
action = actions.get(0);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetVlanPcpCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetVlanPcpCase setVlanPcpCase = (SetVlanPcpCase) action.getActionChoice();
Assert.assertEquals("Wrong vlan pcp", 7, setVlanPcpCase.getSetVlanPcpAction().getVlanPcp().intValue());
action = actions.get(1);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.StripVlanCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
action = actions.get(2);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetDlDstCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetDlDstCase setDlDstCase = (SetDlDstCase) action.getActionChoice();
Assert.assertEquals("Wrong dl dst", "00:00:00:00:00:06",
setDlDstCase.getSetDlDstAction().getDlDstAddress().getValue());
action = actions.get(3);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetDlSrcCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetDlSrcCase setDlSrcCase = (SetDlSrcCase) action.getActionChoice();
Assert.assertEquals("Wrong dl src", "00:00:00:00:00:05",
setDlSrcCase.getSetDlSrcAction().getDlSrcAddress().getValue());
action = actions.get(4);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetNwSrcCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetNwSrcCase setNwSrcCase = (SetNwSrcCase) action.getActionChoice();
Assert.assertEquals("Wrong nw src", "10.0.0.0", setNwSrcCase.getSetNwSrcAction().getIpAddress().getValue());
action = actions.get(5);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetNwDstCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetNwDstCase setNwDstCase = (SetNwDstCase) action.getActionChoice();
Assert.assertEquals("Wrong nw dst", "10.0.0.2", setNwDstCase.getSetNwDstAction().getIpAddress().getValue());
action = actions.get(6);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetTpSrcCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetTpSrcCase setTpSrcCase = (SetTpSrcCase) action.getActionChoice();
Assert.assertEquals("Wrong tp src", 54, setTpSrcCase.getSetTpSrcAction().getPort().getValue().intValue());
action = actions.get(7);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetTpDstCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetTpDstCase setTpDstCase = (SetTpDstCase) action.getActionChoice();
Assert.assertEquals("Wrong tp dst", 45, setTpDstCase.getSetTpDstAction().getPort().getValue().intValue());
action = actions.get(8);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetNwTosCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetNwTosCase setNwTosCase = (SetNwTosCase) action.getActionChoice();
Assert.assertEquals("Wrong nw tos", 18, setNwTosCase.getSetNwTosAction().getNwTos().intValue());
action = actions.get(9);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetVlanVidCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
SetVlanVidCase setVlanVidCase = (SetVlanVidCase) action.getActionChoice();
Assert.assertEquals("Wrong vlan id", 22, setVlanVidCase.getSetVlanVidAction().getVlanVid().intValue());
action = actions.get(10);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.StripVlanCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
action = actions.get(11);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetVlanVidCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
setVlanVidCase = (SetVlanVidCase) action.getActionChoice();
Assert.assertEquals("Wrong vlan id", 22, setVlanVidCase.getSetVlanVidAction().getVlanVid().intValue());
}
Assert.assertEquals("Wrong number of output actions", 1, mdSalActions.size());
org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action action = mdSalActions.get(0);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.OutputActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.OutputActionCase", action.implementedInterface().getName());
OutputActionCase outputAction = (OutputActionCase) action;
Assert.assertEquals("Wrong output port", "14",
outputAction.getOutputAction().getOutputNodeConnector().getValue());
Assert.assertEquals("Wrong number of output actions", 16, mdSalActions.size());
org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action action = mdSalActions.get(0);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.OutputActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.OutputActionCase", action.implementedInterface().getName());
OutputActionCase output = (OutputActionCase) action;
Assert.assertEquals("Wrong output port", "42", output.getOutputAction().getOutputNodeConnector().getValue());
Assert.assertEquals("Wrong max length", 52, output.getOutputAction().getMaxLength().intValue());
action = mdSalActions.get(1);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.CopyTtlOutCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.CopyTtlOutCase", action.implementedInterface().getName());
action = mdSalActions.get(2);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.CopyTtlInCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.CopyTtlInCase", action.implementedInterface().getName());
action = mdSalActions.get(3);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.SetMplsTtlActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.SetMplsTtlActionCase", action.implementedInterface().getName());
SetMplsTtlActionCase setMplsTtl = (SetMplsTtlActionCase) action;
Assert.assertEquals("Wrong mpls ttl", 4, setMplsTtl.getSetMplsTtlAction().getMplsTtl().intValue());
action = mdSalActions.get(4);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.DecMplsTtlCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.DecMplsTtlCase", action.implementedInterface().getName());
action = mdSalActions.get(5);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.PushVlanActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.PushVlanActionCase", action.implementedInterface().getName());
PushVlanActionCase pushVlan = (PushVlanActionCase) action;
Assert.assertEquals("Wrong ethertype", 16, pushVlan.getPushVlanAction().getEthernetType().intValue());
action = mdSalActions.get(6);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.PopVlanActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.PopVlanActionCase", action.implementedInterface().getName());
action = mdSalActions.get(7);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.PushMplsActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.PushMplsActionCase", action.implementedInterface().getName());
PushMplsActionCase pushMpls = (PushMplsActionCase) action;
Assert.assertEquals("Wrong ethertype", 17, pushMpls.getPushMplsAction().getEthernetType().intValue());
action = mdSalActions.get(8);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.PopMplsActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.PopMplsActionCase", action.implementedInterface().getName());
PopMplsActionCase popMpls = (PopMplsActionCase) action;
Assert.assertEquals("Wrong ethertype", 18, popMpls.getPopMplsAction().getEthernetType().intValue());
action = mdSalActions.get(9);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.SetQueueActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.SetQueueActionCase", action.implementedInterface().getName());
SetQueueActionCase setQueue = (SetQueueActionCase) action;
Assert.assertEquals("Wrong queue-id", 1234, setQueue.getSetQueueAction().getQueueId().intValue());
action = mdSalActions.get(10);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.GroupActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.GroupActionCase", action.implementedInterface().getName());
GroupActionCase groupAction = (GroupActionCase) action;
Assert.assertEquals("Wrong group-id", 555, groupAction.getGroupAction().getGroupId().intValue());
action = mdSalActions.get(11);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.SetNwTtlActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.SetNwTtlActionCase", action.implementedInterface().getName());
SetNwTtlActionCase setNwTtl = (SetNwTtlActionCase) action;
Assert.assertEquals("Wrong nw ttl", 8, setNwTtl.getSetNwTtlAction().getNwTtl().intValue());
action = mdSalActions.get(12);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.DecNwTtlCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.DecNwTtlCase", action.implementedInterface().getName());
action = mdSalActions.get(13);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.SetFieldCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.SetFieldCase", action.implementedInterface().getName());
SetFieldCase setField = (SetFieldCase) action;
Assert.assertEquals("Wrong in port", "openflow:null:1", setField.getSetField().getInPort().getValue());
action = mdSalActions.get(14);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.PushPbbActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.PushPbbActionCase", action.implementedInterface().getName());
PushPbbActionCase pushPbb = (PushPbbActionCase) action;
Assert.assertEquals("Wrong ethertype", 19, pushPbb.getPushPbbAction().getEthernetType().intValue());
action = mdSalActions.get(15);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.action.types"
- + ".rev131112.action.action.PopPbbActionCase", action.getImplementedInterface().getName());
+ + ".rev131112.action.action.PopPbbActionCase", action.implementedInterface().getName());
}
/**
Action action = actions.get(0);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice
.SetFieldCase setFieldCase =
(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping
action = actions.get(1);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
setFieldCase = (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping
.action.choice.SetFieldCase) action.getActionChoice();
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
action = actions.get(2);
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
setFieldCase = (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping
.action.choice.SetFieldCase) action.getActionChoice();
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.EthSrc.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv4Src.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv4Dst.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.TcpSrc.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.TcpDst.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.IpDscp.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.VlanVid.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6Src.class, false);
.action.choice.SetFieldCase) action.getActionChoice();
Assert.assertEquals("Wrong action type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".action.rev150203.action.grouping.action.choice.SetFieldCase",
- action.getActionChoice().getImplementedInterface().getName());
+ action.getActionChoice().implementedInterface().getName());
entry = setFieldCase.getSetFieldAction().getMatchEntry().get(0);
checkEntryHeader(entry,
org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6Dst.class, false);
import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.Ordered;
-import org.opendaylight.yangtools.yang.binding.DataContainer;
/**
* To test OrderComparator.
}
@Override
- public Class<? extends DataContainer> getImplementedInterface() {
+ public Class<Ordered> implementedInterface() {
return Ordered.class;
}
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.FlowModFlags;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FlowModInputBuilder;
import org.opendaylight.yangtools.yang.binding.Augmentation;
-import org.opendaylight.yangtools.yang.binding.DataContainer;
/**
* Unit tests for flow conversion.
.grouping.Instruction instruction = flowMod.get(0).getInstruction().get(0);
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".instruction.rev130731.instruction.grouping.instruction.choice.GotoTableCase",
- instruction.getInstructionChoice().getImplementedInterface().getName());
+ instruction.getInstructionChoice().implementedInterface().getName());
GotoTableCase gotoTableCase = (GotoTableCase) instruction.getInstructionChoice();
Assert.assertEquals("Wrong table id", 1, gotoTableCase.getGotoTable().getTableId().intValue());
instruction = flowMod.get(0).getInstruction().get(1);
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".instruction.rev130731.instruction.grouping.instruction.choice.WriteMetadataCase",
- instruction.getInstructionChoice().getImplementedInterface().getName());
+ instruction.getInstructionChoice().implementedInterface().getName());
WriteMetadataCase writeMetadataCase = (WriteMetadataCase) instruction.getInstructionChoice();
Assert.assertArrayEquals("Wrong metadata", new byte[]{0, 0, 0, 0, 0, 0, 0, 2},
writeMetadataCase.getWriteMetadata().getMetadata());
instruction = flowMod.get(0).getInstruction().get(2);
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".instruction.rev130731.instruction.grouping.instruction.choice.WriteActionsCase",
- instruction.getInstructionChoice().getImplementedInterface().getName());
+ instruction.getInstructionChoice().implementedInterface().getName());
WriteActionsCase writeActionsCase = (WriteActionsCase) instruction.getInstructionChoice();
Assert.assertEquals("Wrong actions size", 0, writeActionsCase.getWriteActions().getAction().size());
instruction = flowMod.get(0).getInstruction().get(3);
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".instruction.rev130731.instruction.grouping.instruction.choice.ApplyActionsCase",
- instruction.getInstructionChoice().getImplementedInterface().getName());
+ instruction.getInstructionChoice().implementedInterface().getName());
ApplyActionsCase applyActionsCase = (ApplyActionsCase) instruction.getInstructionChoice();
Assert.assertEquals("Wrong actions size", 0, applyActionsCase.getApplyActions().getAction().size());
instruction = flowMod.get(0).getInstruction().get(4);
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".instruction.rev130731.instruction.grouping.instruction.choice.ClearActionsCase",
- instruction.getInstructionChoice().getImplementedInterface().getName());
+ instruction.getInstructionChoice().implementedInterface().getName());
instruction = flowMod.get(0).getInstruction().get(5);
Assert.assertEquals("Wrong type", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common"
+ ".instruction.rev130731.instruction.grouping.instruction.choice.MeterCase",
- instruction.getInstructionChoice().getImplementedInterface().getName());
+ instruction.getInstructionChoice().implementedInterface().getName());
MeterCase meterCase = (MeterCase) instruction.getInstructionChoice();
Assert.assertEquals("Wrong meter id", 5, meterCase.getMeter().getMeterId().intValue());
}
}
@Override
- public Class<? extends DataContainer> getImplementedInterface() {
- return Flow.class;
+ public Class<AddFlowInput> implementedInterface() {
+ return AddFlowInput.class;
}
}
}
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>3.0.6</version>
+ <version>4.0.0</version>
<relativePath/>
</parent>