blob: 31b8069afd77d3cd4d5f4b40b4c21ee68999e877 [file] [log] [blame]
Jonathan Hartbb782be2017-02-09 17:45:49 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Jonathan Hartbb782be2017-02-09 17:45:49 -08003 *
4 * 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
7 *
8 * 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.
15 */
16package org.onosproject.reactive.routing;
17
18import org.onlab.packet.IpAddress;
19import org.onlab.packet.IpPrefix;
20import org.onlab.packet.MacAddress;
21import org.onosproject.net.ConnectPoint;
22
23import java.util.Set;
24
25/**
26 * Provides information about the routing configuration.
27 */
28public interface ReactiveRoutingConfigurationService {
29
30 String REACTIVE_ROUTING_APP_ID = "org.onosproject.reactive.routing";
31
32 Class<ReactiveRoutingConfig> CONFIG_CLASS = ReactiveRoutingConfig.class;
33
34
35 MacAddress getVirtualGatewayMacAddress();
36
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 */
43 boolean isVirtualGatewayIpAddress(IpAddress ipAddress);
44
45 /**
46 * 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 */
51 boolean isIpAddressLocal(IpAddress ipAddress);
52
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 */
59 boolean isIpPrefixLocal(IpPrefix ipPrefix);
60
61 /**
62 * 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 */
67 Set<ConnectPoint> getBgpPeerConnectPoints();
68
69
70}