Add canned Mib Reset Response
Change-Id: I884aa795d6fd232cd14b4b1a1032133d0b30804f
diff --git a/core/omci.go b/core/omci.go
index f003712..6644f08 100644
--- a/core/omci.go
+++ b/core/omci.go
@@ -16,8 +16,6 @@
package core
-import "gerrit.opencord.org/voltha-bbsim/common/logger"
-
type OmciMsg struct {
IntfId uint32
OnuId uint32
@@ -26,8 +24,20 @@
func OmciRun(omciOut chan OmciMsg, omciIn chan OmciMsg) {
for {
+ var resp OmciMsg
+
msg := <-omciOut
- logger.Debug("OmciRun IF %v (ONU-ID: %v) pkt:%x.", msg.IntfId, msg.OnuId, msg.Pkt)
- omciIn <- msg
+
+ resp.Pkt = []byte{
+ 0x00, 0x01, 0x2f, 0x0a, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x1f,
+ 0x75, 0x69, 0xaa}
+
+ resp.IntfId = msg.IntfId
+ resp.OnuId = msg.OnuId
+ omciIn <- resp
}
}