import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.mp.reach.nlri.AdvertizedRoutes;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.mp.unreach.nlri.WithdrawnRoutes;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.vpn.rev180329.l3vpn.ip.destination.type.VpnDestination;
-import org.opendaylight.yangtools.yang.binding.DataObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
}
@Override
- public void serializeAttribute(final DataObject attribute, final ByteBuf byteAggregator) {
- Preconditions.checkArgument(attribute instanceof Attributes,
- "Attribute parameter is not a Attributes object");
- final Attributes pathAttributes = (Attributes) attribute;
+ public void serializeAttribute(final Attributes pathAttributes, final ByteBuf byteAggregator) {
final Attributes1 pathAttributes1 = pathAttributes.augmentation(Attributes1.class);
final Attributes2 pathAttributes2 = pathAttributes.augmentation(Attributes2.class);
List<VpnDestination> vpnDst = null;