[VOL-2952]: code changes to remove invalid match criteria as per new port label
Change-Id: I6de7a877fea0d387122de09a8541426f59d122c8
diff --git a/rw_core/core/device/logical_agent_port.go b/rw_core/core/device/logical_agent_port.go
index 27ce04b..7845ad5 100644
--- a/rw_core/core/device/logical_agent_port.go
+++ b/rw_core/core/device/logical_agent_port.go
@@ -421,7 +421,7 @@
func (agent *LogicalAgent) portExist(device *voltha.Device, port *voltha.Port) bool {
ldevice := agent.getLogicalDeviceWithoutLock()
for _, lPort := range ldevice.Ports {
- if lPort.DeviceId == device.Id && lPort.DevicePortNo == port.PortNo && lPort.Id == port.Label {
+ if lPort.DeviceId == device.Id && lPort.DevicePortNo == port.PortNo {
return true
}
}