Search in sources :

Example 1 with Ipv6SidTlvBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev180329.update.attributes.bgp.prefix.sid.bgp.prefix.sid.tlvs.bgp.prefix.sid.tlv.Ipv6SidTlvBuilder in project bgpcep by opendaylight.

the class Ipv6BgpPrefixSidParserTest method testHandling.

@Test
public void testHandling() {
    final Ipv6SidTlvBuilder tlv = new Ipv6SidTlvBuilder();
    tlv.setProcessIpv6HeadAbility(Boolean.TRUE);
    final ByteBuf serialized = Unpooled.buffer(3);
    this.handler.serializeBgpPrefixSidTlv(tlv.build(), serialized);
    assertArrayEquals(this.expected, serialized.array());
    assertTrue(this.handler.parseBgpPrefixSidTlv(serialized).getProcessIpv6HeadAbility());
}
Also used : ByteBuf(io.netty.buffer.ByteBuf) Ipv6SidTlvBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev180329.update.attributes.bgp.prefix.sid.bgp.prefix.sid.tlvs.bgp.prefix.sid.tlv.Ipv6SidTlvBuilder) Test(org.junit.Test)

Aggregations

ByteBuf (io.netty.buffer.ByteBuf)1 Test (org.junit.Test)1 Ipv6SidTlvBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev180329.update.attributes.bgp.prefix.sid.bgp.prefix.sid.tlvs.bgp.prefix.sid.tlv.Ipv6SidTlvBuilder)1