blob: 53db001a4003646c3bf8585d173af1f825db2a97 [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 */
29public interface PIMInterfaceService {
30
31 /**
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080032 * Return the PIMInterface associated with the given ConnectPoint.
33 *
34 * @param cp The ConnectPoint we want to get the PIMInterface for.
35 * @return the PIMInterface if it exists, NULL if it does not exist.
36 */
37 public 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 */
44 Set<PIMInterface> getPimInterfaces();
Rusty Eddy4ae5aa82015-12-15 12:58:27 -080045}