[VOL-3880] Correctly reporting software image status in OMCI Get
[VOL-3900] OMCI ONU Software Image Download
Change-Id: I8d91be832f3a89404d0af0dd98e6b53359e6a738
diff --git a/vendor/github.com/opencord/omci-lib-go/omci.go b/vendor/github.com/opencord/omci-lib-go/omci.go
index 3904352..e347b48 100644
--- a/vendor/github.com/opencord/omci-lib-go/omci.go
+++ b/vendor/github.com/opencord/omci-lib-go/omci.go
@@ -113,8 +113,8 @@
MessageType MessageType
DeviceIdentifier DeviceIdent
ResponseExpected bool // Significant for Download Section Request only
- Payload []byte
- padding []byte
+ Payload []byte // TODO: Deprecated. Use layers.BaseLayer.Payload
+ padding []byte // TODO: Deprecated. Never Used
Length uint16
MIC uint32
}
@@ -137,7 +137,7 @@
// LayerContents returns the OMCI specific layer information
func (omci *OMCI) LayerContents() []byte {
- b := make([]byte, 8)
+ b := make([]byte, 4)
binary.BigEndian.PutUint16(b, omci.TransactionID)
b[2] = byte(omci.MessageType)
b[3] = byte(omci.DeviceIdentifier)
@@ -252,7 +252,7 @@
//return errors.New(msg)
}
}
- omci.BaseLayer = layers.BaseLayer{data[:4], data[4:]}
+ omci.BaseLayer = layers.BaseLayer{data[:4], data[4:omci.Length]}
p.AddLayer(omci)
nextLayer, err := MsgTypeToNextLayer(omci.MessageType)
if err != nil {