Improve Attribute serializer/parser Interfaces
[bgpcep.git] / bgp / parser-impl / src / main / java / org / opendaylight / protocol / bgp / parser / impl / message / update / AS4PathAttributeParser.java
index ea202a6c01aa8045cabcb6dfd9ab87686eccb417..ff7b08595a07093f5da5691399f4158fb109f494 100644 (file)
@@ -10,8 +10,8 @@ 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.protocol.bgp.parser.spi.AttributeSerializer;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.Attributes;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder;
-import org.opendaylight.yangtools.yang.binding.DataObject;
 
 public final class AS4PathAttributeParser implements AttributeParser, AttributeSerializer {
 
@@ -23,7 +23,7 @@ public final class AS4PathAttributeParser implements AttributeParser, AttributeS
     }
 
     @Override
-    public void serializeAttribute(final DataObject attribute, final ByteBuf byteAggregator) {
+    public void serializeAttribute(final Attributes attribute, final ByteBuf byteAggregator) {
         // AS4 Path is ignored
     }
 }