Satish K
Committed by Gerrit Code Review

Invalid Comparision Fix in VTN

Change-Id: Ia72eaf5bea05c17180264152b13c91e9c64a511b
...@@ -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 }
......