blob: 528c51d39bf306995402eccac7a2f3d914e8a436 [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
18import org.onosproject.incubator.net.intf.Interface;
19import org.onosproject.net.ConnectPoint;
20
21/**
22 * Define the PIMInterfaceService. PIM will use ONOS Interfaces to
23 * define PIM Interfaces. The PIM Application signed up as a Netconfig
24 * listener.
25 *
26 * TODO: Do we need a PIMInterfaceListenerService? Who sould listen to Interfaces changes?
27 */
28public interface PIMInterfaceService {
29
30 /**
31 * Update the corresponding PIMInterface. If the PIMInterface
32 * does not exist it will be created.
33 *
34 * @param intf ONOS Interface.
35 */
36 public void updateInterface(Interface intf);
37
38 /**
39 * Delete the PIMInterface that corresponds to the given ConnectPoint.
40 *
41 * @param cp The connect point associated with this interface.
42 */
43 public void deleteInterface(ConnectPoint cp);
44
45 /**
46 * Return the PIMInterface associated with the given ConnectPoint.
47 *
48 * @param cp The ConnectPoint we want to get the PIMInterface for.
49 * @return the PIMInterface if it exists, NULL if it does not exist.
50 */
51 public PIMInterface getPIMInterface(ConnectPoint cp);
52}