[VOL-2252] Using omci-sim v0.0.1
Adding Makefile support to load a development version of the omci-sim library
Change-Id: I341f626adaec35e697eb24470594942463d8f9a8
diff --git a/vendor/github.com/opencord/omci-sim/omci_handlers.go b/vendor/github.com/opencord/omci-sim/omci_handlers.go
index 67a57e7..de62498 100644
--- a/vendor/github.com/opencord/omci-sim/omci_handlers.go
+++ b/vendor/github.com/opencord/omci-sim/omci_handlers.go
@@ -37,6 +37,7 @@
SynchronizeTime: syncTime,
Delete: delete,
Reboot: reboot,
+ Test: testHandler,
}
func mibReset(class OmciClass, content OmciContent, key OnuKey) ([]byte, error) {
@@ -564,3 +565,22 @@
return pkt, nil
}
+func testHandler(class OmciClass, content OmciContent, key OnuKey) ([]byte, error) {
+ var pkt []byte
+ pkt = []byte{
+ 0x20, 0x52, 0x45, 0x43, 0x56, 0x00, 0x20, 0x53,
+ 0x45, 0x4e, 0x44, 0x00, 0x88, 0xb5, 0x02, 0x3f,
+ 0x1b, 0x0a, 0x01, 0x07, 0x80, 0x01, 0x01, 0x00,
+ 0xa5, 0x03, 0xe0, 0x0b, 0x05, 0x0b, 0x2b, 0x09,
+ 0x1c, 0xd0, 0x0c, 0x32, 0x80, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x28, 0xf8, 0x13, 0x1b, 0x36,}
+
+ log.WithFields(log.Fields{
+ "IntfId": key.IntfId,
+ "OnuId": key.OnuId,
+ }).Trace("Omci Test")
+ return pkt, nil
+}
+