Committed by
Gerrit Code Review
Ovsdb equals review fix
Change-Id: I5833f1446a882c7ff106a0bcfa15f4629cbdcae9
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -16,6 +16,7 @@ | ... | @@ -16,6 +16,7 @@ |
16 | 16 | ||
17 | package org.onosproject.driver.ovsdb; | 17 | package org.onosproject.driver.ovsdb; |
18 | 18 | ||
19 | +import com.google.common.collect.ImmutableSet; | ||
19 | import org.onlab.packet.IpAddress; | 20 | import org.onlab.packet.IpAddress; |
20 | import org.onlab.packet.TpPort; | 21 | import org.onlab.packet.TpPort; |
21 | import org.onosproject.net.AnnotationKeys; | 22 | import org.onosproject.net.AnnotationKeys; |
... | @@ -56,7 +57,7 @@ public class OvsdbControllerConfig extends AbstractHandlerBehaviour implements C | ... | @@ -56,7 +57,7 @@ public class OvsdbControllerConfig extends AbstractHandlerBehaviour implements C |
56 | DriverHandler handler = handler(); | 57 | DriverHandler handler = handler(); |
57 | OvsdbClientService clientService = getOvsdbClientService(handler); | 58 | OvsdbClientService clientService = getOvsdbClientService(handler); |
58 | if (!clientService.getControllers(handler().data().deviceId()) | 59 | if (!clientService.getControllers(handler().data().deviceId()) |
59 | - .equals(controllers)) { | 60 | + .equals(ImmutableSet.copyOf(controllers))) { |
60 | clientService.setControllersWithDeviceId(handler(). | 61 | clientService.setControllersWithDeviceId(handler(). |
61 | data().deviceId(), controllers); | 62 | data().deviceId(), controllers); |
62 | } | 63 | } | ... | ... |
-
Please register or login to post a comment