BUG-2982 : moved path-attributes container to grouping
[bgpcep.git] / bgp / parser-impl / src / main / java / org / opendaylight / protocol / bgp / parser / impl / message / update / AS4AggregatorAttributeParser.java
index 40c59d48aa4a54f9db920b1e543b34fe866c50b9..4056ad6bef12035cc3fd3892750bfd4a85580275 100644 (file)
@@ -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 AS4AggregatorAttributeParser implements AttributeParser {
-       public static final int TYPE = 17;
+public final class AS4AggregatorAttributeParser implements AttributeParser, AttributeSerializer {
 
-       @Override
-       public void parseAttribute(final byte[] bytes, final PathAttributesBuilder builder) {
-               // AS4 Aggregator is ignored
-       }
-}
\ No newline at end of file
+    public static final int TYPE = 17;
+
+    @Override
+    public void parseAttribute(final ByteBuf buffer, final AttributesBuilder builder) {
+        // AS4 Aggregator is ignored
+    }
+
+    @Override
+    public void serializeAttribute(final DataObject attribute, final ByteBuf byteAggregator) {
+        // AS4 Aggregator is ignored
+    }
+}