2 * Copyright (c) 2013 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.impl.spi;
10 import java.util.List;
12 import org.opendaylight.protocol.bgp.rib.spi.Peer;
13 import org.opendaylight.protocol.framework.ReconnectStrategyFactory;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.AsNumber;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.Update;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev130919.BgpTableType;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.TablesKey;
21 * Internal reference to a RIB instance.
23 public interface RIB {
24 AsNumber getLocalAs();
25 Ipv4Address getBgpIdentifier();
26 List<? extends BgpTableType> getLocalTables();
28 void initTable(Peer bgpPeer, TablesKey key);
29 void clearTable(Peer bgpPeer, TablesKey key);
30 void updateTables(Peer bgpPeer, Update message);
32 BGPDispatcher getDispatcher();
33 ReconnectStrategyFactory getTcpStrategyFactory();
34 ReconnectStrategyFactory getSessionStrategyFactory();