Added configuration for PIM interfaces.
Now the PIM application requires PIM Interface configuration for each interface
that will have PIM enabled (no longer uses all ONOS interfaces). The
interface-specific PIM parameters can be tuned.
Change-Id: Ibc284fdbe1b3aa4da48097b3e92470bce4f349a7
diff --git a/apps/pim/src/main/java/org/onosproject/pim/impl/PIMInterfaceService.java b/apps/pim/src/main/java/org/onosproject/pim/impl/PIMInterfaceService.java
index 528c51d..53db001 100644
--- a/apps/pim/src/main/java/org/onosproject/pim/impl/PIMInterfaceService.java
+++ b/apps/pim/src/main/java/org/onosproject/pim/impl/PIMInterfaceService.java
@@ -15,9 +15,10 @@
*/
package org.onosproject.pim.impl;
-import org.onosproject.incubator.net.intf.Interface;
import org.onosproject.net.ConnectPoint;
+import java.util.Set;
+
/**
* Define the PIMInterfaceService. PIM will use ONOS Interfaces to
* define PIM Interfaces. The PIM Application signed up as a Netconfig
@@ -28,25 +29,17 @@
public interface PIMInterfaceService {
/**
- * Update the corresponding PIMInterface. If the PIMInterface
- * does not exist it will be created.
- *
- * @param intf ONOS Interface.
- */
- public void updateInterface(Interface intf);
-
- /**
- * Delete the PIMInterface that corresponds to the given ConnectPoint.
- *
- * @param cp The connect point associated with this interface.
- */
- public void deleteInterface(ConnectPoint cp);
-
- /**
* Return the PIMInterface associated with the given ConnectPoint.
*
* @param cp The ConnectPoint we want to get the PIMInterface for.
* @return the PIMInterface if it exists, NULL if it does not exist.
*/
public PIMInterface getPIMInterface(ConnectPoint cp);
+
+ /**
+ * Retrieves the set of all interfaces running PIM.
+ *
+ * @return set of PIM interfaces
+ */
+ Set<PIMInterface> getPimInterfaces();
}