VOL-2535 : Update the PON-ports on Disable olt,
Openolt agent doesn't disable the NNI port on disble olt device.
Hence NNI operstatus is not updating to UNKNOWN on Disble olt.
Change-Id: I172a1c2c0f3f27567d0740504b1fb5ece614a00d
diff --git a/mocks/mockCoreProxy.go b/mocks/mockCoreProxy.go
index 2c3a81c..9c99599 100644
--- a/mocks/mockCoreProxy.go
+++ b/mocks/mockCoreProxy.go
@@ -210,5 +210,8 @@
// PortStateUpdate implements mock PortStateUpdate
func (mcp *MockCoreProxy) PortStateUpdate(ctx context.Context, deviceID string, pType voltha.Port_PortType, portNo uint32,
operStatus voltha.OperStatus_Types) error {
+ if deviceID == "" {
+ return errors.New("no Device")
+ }
return nil
}