blob: 16082df38af3b1b09b9d3f9e26a89d6619a9f1d9 [file] [log] [blame]
Rusty Eddy4ae5aa82015-12-15 12:58:27 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
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.pim.impl;
17
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080018import org.onosproject.net.ConnectPoint;
19
Jonathan Hart5af5f142016-01-28 18:45:27 -080020import java.util.Set;
21
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080022/**
23 * Define the PIMInterfaceService. PIM will use ONOS Interfaces to
24 * define PIM Interfaces. The PIM Application signed up as a Netconfig
25 * listener.
26 *
27 * TODO: Do we need a PIMInterfaceListenerService? Who sould listen to Interfaces changes?
28 */
Jonathan Hartfbfe2a82016-03-29 11:36:33 -070029public interface PimInterfaceService {
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080030
31 /**
Jonathan Hart7f4bc522016-02-20 11:32:43 -080032 * Returns the PIM interface associated with the given connect point.
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080033 *
Jonathan Hart7f4bc522016-02-20 11:32:43 -080034 * @param cp the connect point we want to get the PIM interface for
35 * @return the PIM interface if it exists, otherwise null
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080036 */
Jonathan Hartfbfe2a82016-03-29 11:36:33 -070037 PimInterface getPimInterface(ConnectPoint cp);
Jonathan Hart5af5f142016-01-28 18:45:27 -080038
39 /**
40 * Retrieves the set of all interfaces running PIM.
41 *
42 * @return set of PIM interfaces
43 */
Jonathan Hartfbfe2a82016-03-29 11:36:33 -070044 Set<PimInterface> getPimInterfaces();
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080045}