blob: 62b2ae3591ec85954461cdbb0fe6a96d80ee8c8c [file] [log] [blame]
Jonathan Hartbac07a02014-10-13 21:29:54 -07001package org.onlab.onos.sdnip.config;
2
3import java.util.Map;
4
5import org.onlab.packet.IpAddress;
6
7/**
8 * Provides information about the layer 3 properties of the network.
9 * This is based on IP addresses configured on ports in the network.
10 */
11public interface SdnIpConfigService {
12
13 /**
14 * Gets the list of virtual external-facing interfaces.
15 *
16 * @return the map of interface names to interface objects
17 */
18 //public Map<String, Interface> getInterfaces();
19
20 /**
21 * Gets the list of BGP speakers inside the SDN network.
22 *
23 * @return the map of BGP speaker names to BGP speaker objects
24 */
25 public Map<String, BgpSpeaker> getBgpSpeakers();
26
27 /**
28 * Gets the list of configured BGP peers.
29 *
30 * @return the map from peer IP address to BgpPeer object
31 */
32 public Map<IpAddress, BgpPeer> getBgpPeers();
33
34 /**
35 * Gets the Interface object for the interface that packets
36 * to dstIpAddress will be sent out of. Returns null if dstIpAddress is not
37 * in a directly connected network, or if no interfaces are configured.
38 *
39 * @param dstIpAddress destination IP address that we want to match to
40 * an outgoing interface
41 * @return the Interface object if one is found, otherwise null
42 */
43 //public Interface getOutgoingInterface(IpAddress dstIpAddress);
44
45}