Extend FPM module to handle routes from multiple peers.
This has the side-effect of fixing a bug when the same peer changes its
route advertisement for a particular prefix.
Change-Id: I09af3baf0a7741919be2a2986112db6db2556666
diff --git a/apps/routing/fpm/src/main/java/org/onosproject/routing/fpm/FpmInfoService.java b/apps/routing/fpm/src/main/java/org/onosproject/routing/fpm/FpmInfoService.java
index 018b1bb..cd24cc6 100644
--- a/apps/routing/fpm/src/main/java/org/onosproject/routing/fpm/FpmInfoService.java
+++ b/apps/routing/fpm/src/main/java/org/onosproject/routing/fpm/FpmInfoService.java
@@ -16,13 +16,17 @@
package org.onosproject.routing.fpm;
-import java.net.SocketAddress;
import java.util.Map;
/**
- * Created by jono on 2/2/16.
+ * Provides information about the FPM route receiver module.
*/
public interface FpmInfoService {
- Map<SocketAddress, Long> peers();
+ /**
+ * Returns the FPM peers that are currently connected.
+ *
+ * @return a map of FPM peer to connection time.
+ */
+ Map<FpmPeer, Long> peers();
}