a0d93875582348bc34a57efbbcde3e1192928f0a
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / PeerRegistrySessionListener.java
1 /*
2  * Copyright (c) 2016 Brocade Communications 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 package org.opendaylight.protocol.bgp.rib.impl.spi;
9
10 import org.eclipse.jdt.annotation.NonNullByDefault;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
12
13 /**
14  * Listens to the session changes for peers in a PeerRegisty.
15  *
16  */
17 @NonNullByDefault
18 public interface PeerRegistrySessionListener {
19
20     /**
21      * Invoked when new peer session is created.
22      * @param ip The peer's IP address.
23      */
24     void onSessionCreated(IpAddress ip);
25
26     /**
27      * Invoked when peer session is removed.
28      * @param ip The peer's IP address.
29      */
30     void onSessionRemoved(IpAddress ip);
31
32 }