blob: 113daa7441af92ab6903e67660a98ef2021d6605 [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska781d18b2014-10-27 10:31:25 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thomas Vachuska781d18b2014-10-27 10:31:25 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Thomas Vachuska781d18b2014-10-27 10:31:25 -070015 */
Jonathan Hart2da1e602015-02-18 19:09:24 -080016package org.onosproject.routing.config;
Jonathan Hartdc711bd2014-10-15 11:24:23 -070017
Pavlin Radoslavov2020eac2015-01-06 17:26:10 -080018import org.onlab.packet.IpAddress;
Brian O'Connorabafb502014-12-02 22:26:20 -080019import org.onosproject.net.ConnectPoint;
Jonathan Hart90a02c22015-02-13 11:52:07 -080020
21import java.util.Map;
22import java.util.Set;
Jonathan Hartdc711bd2014-10-15 11:24:23 -070023
24/**
Jonathan Hart90a02c22015-02-13 11:52:07 -080025 * Provides information about the routing configuration.
Jonathan Hartdc711bd2014-10-15 11:24:23 -070026 */
Jonathan Hart90a02c22015-02-13 11:52:07 -080027public interface RoutingConfigurationService {
28
29 /**
30 * Gets the list of BGP speakers inside the SDN network.
31 *
32 * @return the map of BGP speaker names to BGP speaker objects
33 */
34 public Map<String, BgpSpeaker> getBgpSpeakers();
35
36 /**
37 * Gets the list of configured BGP peers.
38 *
39 * @return the map from peer IP address to BgpPeer object
40 */
41 public Map<IpAddress, BgpPeer> getBgpPeers();
42
Jonathan Hartdc711bd2014-10-15 11:24:23 -070043 /**
44 * Retrieves the entire set of interfaces in the network.
45 *
46 * @return the set of interfaces
47 */
48 Set<Interface> getInterfaces();
49
50 /**
51 * Retrieves the interface associated with the given connect point.
52 *
53 * @param connectPoint the connect point to retrieve interface information
54 * for
55 * @return the interface
56 */
57 Interface getInterface(ConnectPoint connectPoint);
58
59 /**
60 * Retrieves the interface that matches the given IP address. Matching
61 * means that the IP address is in one of the interface's assigned subnets.
62 *
63 * @param ipAddress IP address to match
64 * @return the matching interface
65 */
66 Interface getMatchingInterface(IpAddress ipAddress);
Jonathan Hart90a02c22015-02-13 11:52:07 -080067
Jonathan Hartdc711bd2014-10-15 11:24:23 -070068}