Search in sources :

Example 1 with IpDstCaseValue

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.

the class Ipv6DstCodecTest method deserializeTest.

@Test
public void deserializeTest() {
    createBuffer(buffer);
    input = ipv6DstCodec.deserialize(buffer);
    final IpDstCaseValue result = (IpDstCaseValue) input.getMatchEntryValue();
    assertEquals(Nxm1Class.class, input.getOxmClass());
    assertEquals(NxmOfIpDst.class, input.getOxmMatchField());
    assertEquals(false, input.isHasMask());
    assertEquals(2, result.getIpDstValues().getValue().intValue());
}
Also used : IpDstCaseValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue) Test(org.junit.Test)

Example 2 with IpDstCaseValue

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.

the class IpDstCodec method serialize.

@Override
public void serialize(MatchEntry input, ByteBuf outBuffer) {
    serializeHeader(input, outBuffer);
    IpDstCaseValue ipDstCase = (IpDstCaseValue) input.getMatchEntryValue();
    outBuffer.writeInt(ipDstCase.getIpDstValues().getValue().intValue());
}
Also used : IpDstCaseValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue)

Example 3 with IpDstCaseValue

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.

the class IpDstCodecTest method deserializeTest.

@Test
public void deserializeTest() {
    createBuffer(buffer);
    input = ipDstCodec.deserialize(buffer);
    final IpDstCaseValue result = (IpDstCaseValue) input.getMatchEntryValue();
    assertEquals(Nxm0Class.class, input.getOxmClass());
    assertEquals(NxmOfIpDst.class, input.getOxmMatchField());
    assertEquals(false, input.isHasMask());
    assertEquals(2, result.getIpDstValues().getValue().intValue());
}
Also used : IpDstCaseValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue) Test(org.junit.Test)

Example 4 with IpDstCaseValue

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.

the class Ipv6DstCodec method serialize.

@Override
public void serialize(MatchEntry input, ByteBuf outBuffer) {
    serializeHeader(input, outBuffer);
    IpDstCaseValue ipDstCase = (IpDstCaseValue) input.getMatchEntryValue();
    outBuffer.writeInt(ipDstCase.getIpDstValues().getValue().intValue());
}
Also used : IpDstCaseValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue)

Aggregations

IpDstCaseValue (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue)4 Test (org.junit.Test)2