Adding channgel for OMCI State feedback
Change-Id: I35728846ab86ca7f6686782e00df7f291a4376e6
diff --git a/omci_sim.go b/omci_sim.go
index 5980db1..6cc0708 100644
--- a/omci_sim.go
+++ b/omci_sim.go
@@ -21,6 +21,12 @@
log "github.com/sirupsen/logrus"
)
+var omciCh = make(chan OmciChMessage)
+
+func GetChannel() chan OmciChMessage {
+ return omciCh
+}
+
func OmciSim(intfId uint32, onuId uint32, request []byte) ([]byte, error) {
var resp []byte
@@ -42,7 +48,7 @@
"MeInstance": instance,
//"Conent": content,
"omciMsg": fmt.Sprintf("%x", content),
- }).Debugf("Processing OMCI pakcet")
+ }).Tracef("Processing OMCI pakcet")
key := OnuKey{intfId, onuId}
if _, ok := OnuOmciStateMap[key]; !ok {
@@ -102,7 +108,7 @@
"OnuId": onuId,
"msgType": msgType.PrettyPrint(),
"omciMsg": fmt.Sprintf("%x", resp),
- }).Debugf("OMCI-SIM Response")
+ }).Tracef("OMCI-SIM Response")
return resp, nil
}
\ No newline at end of file