Committed by
Gerrit Code Review
Invalid Comparision Fix in VTN
Change-Id: Ia72eaf5bea05c17180264152b13c91e9c64a511b
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -343,7 +343,7 @@ public class VtnRscManager implements VtnRscService { | ... | @@ -343,7 +343,7 @@ public class VtnRscManager implements VtnRscService { |
343 | VirtualPort vmPort = virtualPortService.getPort(portId); | 343 | VirtualPort vmPort = virtualPortService.getPort(portId); |
344 | Set<Host> hostSet = hostService.getHostsByMac(vmPort.macAddress()); | 344 | Set<Host> hostSet = hostService.getHostsByMac(vmPort.macAddress()); |
345 | for (Host host : hostSet) { | 345 | for (Host host : hostSet) { |
346 | - if (host.annotations().value(IFACEID).equals(vmPort.portId())) { | 346 | + if (host.annotations().value(IFACEID).equals(vmPort.portId().portId())) { |
347 | return host.location().deviceId(); | 347 | return host.location().deviceId(); |
348 | } | 348 | } |
349 | } | 349 | } | ... | ... |
-
Please register or login to post a comment