2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.rib.spi;
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.Route;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.Tables;
12 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 * An execution context for a single LocRib transaction.
18 public interface AdjRIBsTransaction {
20 BGPObjectComparator comparator();
21 void setUptodate(InstanceIdentifier<Tables> basePath, boolean uptodate);
22 <K, T extends Route> void advertise(RouteEncoder ribOut, K key, InstanceIdentifier<T> id, Peer peer, T obj);
23 <K, T extends Route> void withdraw(RouteEncoder ribOut, K key, InstanceIdentifier<T> id);