2 * Copyright (c) 2016 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
9 package org.opendaylight.protocol.bgp.rib.impl.config;
11 import com.google.common.util.concurrent.ListenableFuture;
12 import org.opendaylight.protocol.bgp.openconfig.spi.BGPOpenConfigMappingService;
13 import org.opendaylight.protocol.bgp.rib.impl.spi.BgpDeployer.WriteConfiguration;
14 import org.opendaylight.protocol.bgp.rib.impl.spi.RIB;
15 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbors.Neighbor;
18 * Common interface for BgpPeer and AppPeer beans
21 public interface PeerBean extends AutoCloseable {
23 void start(RIB rib, Neighbor neighbor, BGPOpenConfigMappingService mappingService, WriteConfiguration configurationWriter);
25 void restart(RIB rib, BGPOpenConfigMappingService mappingService);
30 ListenableFuture<Void> closeServiceInstance();
32 Boolean containsEqualConfiguration(Neighbor neighbor);