VOL-5204 olt reboot crash fix
Change-Id: Iaa1ae049778aa8101783d71f17fe00306bdc2034
diff --git a/VERSION b/VERSION
index bdae8d4..4a02d2c 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.16.1-dev
+1.16.2
diff --git a/internal/bbsim/devices/olt.go b/internal/bbsim/devices/olt.go
index bb5be2e..51c0f14 100644
--- a/internal/bbsim/devices/olt.go
+++ b/internal/bbsim/devices/olt.go
@@ -963,6 +963,7 @@
"IntfId": onu.IntfId,
"err": err,
}).Error("Can't find PonPort")
+ return nil, err
}
_onu, err := pon.GetOnuById(onu.OnuId)
if err != nil {
@@ -971,6 +972,7 @@
"IntfId": onu.IntfId,
"err": err,
}).Error("Can't find Onu")
+ return nil, err
}
if _onu.InternalState.Current() != OnuStateDisabled {