ONOS-1856: Supports ports (~65535) for the tunnel policy
- Add some missing Java docs
Change-Id: I0ef750efdb9b667a5b5edbd91cf7b4cc54afd38c
diff --git a/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java b/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
index 41cb65b..02ed88a 100644
--- a/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
+++ b/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
@@ -249,6 +249,12 @@
return policyHandler.getPolicies();
}
+ /**
+ * Returns the tunnel object with the tunnel ID.
+ *
+ * @param tunnelId Tunnel ID
+ * @return Tunnel reference
+ */
public Tunnel getTunnel(String tunnelId) {
return tunnelHandler.getTunnel(tunnelId);
}
@@ -269,10 +275,12 @@
}
/**
+ * Returns the next objective ID for the NeighborSet given. If the nextObjectiveID does not exist,
+ * a new one is created and returned.
*
- * @param deviceId
- * @param ns
- * @return
+ * @param deviceId Device ID
+ * @param ns NegighborSet
+ * @return next objective ID
*/
public int getNextObjectiveId(DeviceId deviceId, NeighborSet ns) {
@@ -287,10 +295,11 @@
}
/**
+ * Removes the next objective ID.
*
- * @param deviceId
- * @param objectiveId
- * @return
+ * @param deviceId Device ID
+ * @param objectiveId next objective ID to remove
+ * @return true, if succeeds, false otherwise
*/
public boolean removeNextObjective(DeviceId deviceId, int objectiveId) {
return groupHandlerMap.get(deviceId).removeGroup(objectiveId);