X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=bgp%2Fparser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fbgp%2Fparser%2Fimpl%2Fmessage%2Fupdate%2FAS4PathAttributeParser.java;h=f642fc781bb16aa07309b2809f0c3e2b7b1c8ab6;hb=3c135df98a164d4207775de96a5217a392d1949e;hp=91be8a433149d303356163f2ac082e1629b266bf;hpb=e839341f0730816c55fec9313929f03b74262276;p=bgpcep.git diff --git a/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AS4PathAttributeParser.java b/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AS4PathAttributeParser.java index 91be8a4331..f642fc781b 100644 --- a/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AS4PathAttributeParser.java +++ b/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AS4PathAttributeParser.java @@ -7,14 +7,23 @@ */ package org.opendaylight.protocol.bgp.parser.impl.message.update; +import io.netty.buffer.ByteBuf; import org.opendaylight.protocol.bgp.parser.spi.AttributeParser; -import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.update.PathAttributesBuilder; +import org.opendaylight.protocol.bgp.parser.spi.AttributeSerializer; +import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.path.attributes.AttributesBuilder; +import org.opendaylight.yangtools.yang.binding.DataObject; -public final class AS4PathAttributeParser implements AttributeParser { - public static final int TYPE = 18; +public final class AS4PathAttributeParser implements AttributeParser, AttributeSerializer { - @Override - public void parseAttribute(final byte[] bytes, final PathAttributesBuilder builder) { - // AS4 Path is ignored - } -} \ No newline at end of file + public static final int TYPE = 18; + + @Override + public void parseAttribute(final ByteBuf bytes, final AttributesBuilder builder) { + // AS4 Path is ignored + } + + @Override + public void serializeAttribute(final DataObject attribute, final ByteBuf byteAggregator) { + // AS4 Path is ignored + } +}