b324ebeaa1d09dce80e5e6b9c8ee96af1d5c42c0
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / state / BGPTransportState.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 package org.opendaylight.protocol.bgp.rib.spi.state;
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 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
13
14 /**
15  * BGP Operational Transport State.
16  */
17 // FIXME: this could be YANG-modeled
18 @NonNullByDefault
19 public interface BGPTransportState {
20     /**
21      * Local Port.
22      *
23      * @return port
24      */
25     PortNumber getLocalPort();
26
27     /**
28      * Remote Address.
29      *
30      * @return IpAddress
31      */
32     IpAddress getRemoteAddress();
33
34     /**
35      * Remote Port.
36      *
37      * @return port
38      */
39     PortNumber getRemotePort();
40 }