[AETHER-1295][AETHER-1294] First stab to the TOST APIs framework
and to the DROP policies.
Patch includes also some CLI commands. REST APIs will be implemented
in a separate review. Other review will follow to implement the logic
of the REDIRECT policies
Change-Id: I34aa3da700c5a16682196e4dd8db9c4757d609c4
diff --git a/impl/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java b/impl/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java
index 3251e7a..04d63a2 100644
--- a/impl/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java
+++ b/impl/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java
@@ -394,6 +394,14 @@
}
@Override
+ public List<DeviceId> getEdgeDeviceIds() {
+ return deviceConfigMap.values().stream()
+ .filter(deviceInfo -> deviceInfo.isEdge)
+ .map(deviceInfo -> deviceInfo.deviceId)
+ .collect(Collectors.toList());
+ }
+
+ @Override
public List<Integer> getAllDeviceSegmentIds() {
return allSegmentIds;
}