blob: 9a298a67742e88647a44f621942e26798950eb5a [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 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
Pingping Lin9a445c82016-04-07 11:40:29 -070018import java.util.Set;
19
Pavlin Radoslavov2020eac2015-01-06 17:26:10 -080020import org.onlab.packet.IpAddress;
Pingping Line28ae4c2015-03-13 11:37:03 -070021import org.onlab.packet.IpPrefix;
Pingping Linc9e16bf2015-04-10 14:42:41 -070022import org.onlab.packet.MacAddress;
Brian O'Connorabafb502014-12-02 22:26:20 -080023import org.onosproject.net.ConnectPoint;
Jonathan Hart90a02c22015-02-13 11:52:07 -080024
Jonathan Hartdc711bd2014-10-15 11:24:23 -070025/**
Jonathan Hart90a02c22015-02-13 11:52:07 -080026 * Provides information about the routing configuration.
Jonathan Hartdc711bd2014-10-15 11:24:23 -070027 */
Jonathan Hart90a02c22015-02-13 11:52:07 -080028public interface RoutingConfigurationService {
29
Pingping Lin9a445c82016-04-07 11:40:29 -070030 String REACTIVE_ROUTING_APP_ID = "org.onosproject.reactive.routing";
Jonathan Hart90a02c22015-02-13 11:52:07 -080031
Pingping Lin9a445c82016-04-07 11:40:29 -070032 Class<ReactiveRoutingConfig> CONFIG_CLASS = ReactiveRoutingConfig.class;
Jonathan Hart90a02c22015-02-13 11:52:07 -080033
Pingping Lin9a445c82016-04-07 11:40:29 -070034
Sho SHIMIZU3310a342015-05-13 12:14:05 -070035 MacAddress getVirtualGatewayMacAddress();
Pingping Linc9e16bf2015-04-10 14:42:41 -070036
37 /**
38 * Evaluates whether an IP address is a virtual gateway IP address.
39 *
40 * @param ipAddress the IP address to evaluate
41 * @return true if the IP address is a virtual gateway address, otherwise false
42 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070043 boolean isVirtualGatewayIpAddress(IpAddress ipAddress);
Pingping Linc9e16bf2015-04-10 14:42:41 -070044
45 /**
Pingping Line28ae4c2015-03-13 11:37:03 -070046 * Evaluates whether an IP address belongs to local SDN network.
47 *
48 * @param ipAddress the IP address to evaluate
49 * @return true if the IP address belongs to local SDN network, otherwise false
50 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070051 boolean isIpAddressLocal(IpAddress ipAddress);
Pingping Line28ae4c2015-03-13 11:37:03 -070052
53 /**
54 * Evaluates whether an IP prefix belongs to local SDN network.
55 *
56 * @param ipPrefix the IP prefix to evaluate
57 * @return true if the IP prefix belongs to local SDN network, otherwise false
58 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070059 boolean isIpPrefixLocal(IpPrefix ipPrefix);
Pingping Line28ae4c2015-03-13 11:37:03 -070060
61 /**
Pingping Lin8a524712015-06-24 14:58:24 -070062 * Retrieves the entire set of connect points connected to BGP peers in the
63 * network.
64 *
65 * @return the set of connect points connected to BGP peers
66 */
Jonathan Hart4cb39882015-08-12 23:50:55 -040067 Set<ConnectPoint> getBgpPeerConnectPoints();
Pingping Lin8a524712015-06-24 14:58:24 -070068
Jonathan Hart90a02c22015-02-13 11:52:07 -080069
Jonathan Hartdc711bd2014-10-15 11:24:23 -070070}