/* * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.protocol.bgp.rib.impl.config; import org.opendaylight.protocol.bgp.openconfig.spi.BGPOpenConfigMappingService; import org.opendaylight.protocol.bgp.rib.impl.spi.RIB; import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbors.Neighbor; /** * Common interface for BgpPeer and AppPeer beans * */ public interface PeerBean extends AutoCloseable { void start(RIB rib, Neighbor neighbor, BGPOpenConfigMappingService mappingService); void restart(RIB rib, BGPOpenConfigMappingService mappingService); @Override void close(); }