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());
}
Aggregations