commit | 30e9fd15b9f434c676e8c553913398e72a3067f3 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Jun 11 10:33:43 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Jun 11 21:43:44 2015 +0000 |
tree | 43cefb95053feda310a19818d0847d909b91ea08 | |
parent | e8c7b081858e31c42e332502588c3a25f0d59ef8 [diff] |
Filter connect points by device ID addMissingPorts(Device) runs per device basis, but the variable missing contains connect points of the other devices. Change-Id: I0c4e74b131c8c4f283b103c77eab7443336b7b8b
diff --git a/web/api/src/main/java/org/onosproject/rest/resources/ConfigProvider.java b/web/api/src/main/java/org/onosproject/rest/resources/ConfigProvider.java index 90648d6..57eefa4 100644 --- a/web/api/src/main/java/org/onosproject/rest/resources/ConfigProvider.java +++ b/web/api/src/main/java/org/onosproject/rest/resources/ConfigProvider.java
@@ -451,6 +451,7 @@ .map(p -> new ConnectPoint(device.id(), p.number())) .collect(Collectors.toSet()); Set<ConnectPoint> missing = connectPoints.stream() + .filter(cp -> cp.deviceId().equals(device.id())) .filter(cp -> !existing.contains(cp)) .collect(Collectors.toSet());