BUG-5685: Register BGP Peer Cluster Singleton Service
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / config / PeerBean.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.protocol.bgp.rib.impl.config;
10
11 import org.opendaylight.protocol.bgp.openconfig.spi.BGPOpenConfigMappingService;
12 import org.opendaylight.protocol.bgp.rib.impl.spi.BgpDeployer.WriteConfiguration;
13 import org.opendaylight.protocol.bgp.rib.impl.spi.RIB;
14 import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbors.Neighbor;
15
16 /**
17  * Common interface for BgpPeer and AppPeer beans
18  *
19  */
20 public interface PeerBean extends AutoCloseable {
21
22     void start(RIB rib, Neighbor neighbor, BGPOpenConfigMappingService mappingService, WriteConfiguration configurationWriter);
23
24     void restart(RIB rib, BGPOpenConfigMappingService mappingService);
25
26     @Override
27     void close();
28
29     Boolean containsEqualConfiguration(Neighbor neighbor);
30 }