[VOL-4445] Correct error type to proceed with deletion with half route
Also moving deletion of logical device and meters to correct place in transitions.go
Change-Id: I9eee03edba9ae47ec09fc3b752082a740ee0efde
diff --git a/rw_core/route/device_route.go b/rw_core/route/device_route.go
index dc9921f..1a5cd4c 100644
--- a/rw_core/route/device_route.go
+++ b/rw_core/route/device_route.go
@@ -97,7 +97,7 @@
uniPort, nniPort, err := dr.getLogicalPorts(ingress, egress)
if err != nil {
- return nil, fmt.Errorf("no route from:%d to:%d %w", ingress, egress, err)
+ return nil, fmt.Errorf("no route from:%d to:%d for %s %w", ingress, egress, err.Error(), ErrNoRoute)
}
childPonPort, err := dr.getChildPonPort(ctx, uniPort.DeviceId)