VOL-2452: Add new omci get functions
- Provide functions that encode omci get responses needed
to lookup a MIB template. Other fields added for completeness
Change-Id: I906cb0559afe40f0c4ab31bb44ff09135738823f
diff --git a/omci_common.go b/omci_common.go
index c878780..a140141 100644
--- a/omci_common.go
+++ b/omci_common.go
@@ -49,10 +49,26 @@
pkt, _ = GetANIGAttributes(&pos, pkt, content)
return pkt
+ case SoftwareImage:
+ pos := uint(11)
+ pkt, _ = GetSoftwareImageAttributes(&pos, pkt, content)
+ return pkt
+
+ case ONUG:
+ pos := uint(11)
+ pkt, _ = GetOnuGAttributes(&pos, pkt, content)
+ return pkt
+
+ case ONU2G:
+ pos := uint(11)
+ pkt, _ = GetOnu2GAttributes(&pos, pkt, content)
+ return pkt
+
case EthernetPMHistoryData:
pos := uint(11)
pkt, _ = GetEthernetPMHistoryDataAttributes(&pos, pkt, content)
return pkt
+
default:
// For unimplemented MEs, just fill in the attribute mask and return 0 values for the requested attributes
// TODO implement Get for unimplemented MEs as well