VOL-3049 initial support changes for alarm notifications
Change-Id: Ic6e17196e6955a669e2bf8fc248bdbdbca1654c5
diff --git a/vendor/github.com/opencord/omci-lib-go/generated/medef.go b/vendor/github.com/opencord/omci-lib-go/generated/medef.go
index 7cb85d2..767e27b 100644
--- a/vendor/github.com/opencord/omci-lib-go/generated/medef.go
+++ b/vendor/github.com/opencord/omci-lib-go/generated/medef.go
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
- /*
+/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
@@ -33,14 +33,14 @@
// ManagedEntityDefinition defines a Manage Entity
type ManagedEntityDefinition struct {
- Name string
- ClassID ClassID
- MessageTypes mapset.Set // Mandatory
- // TODO: Support Optional Message types (this has just been fixed in the code generator)
+ Name string
+ ClassID ClassID
+ MessageTypes mapset.Set // Mandatory
AllowedAttributeMask uint16
AttributeDefinitions AttributeDefinitionMap
Access ClassAccess
Support ClassSupport
+ Alarms AlarmMap // AlarmBit -> AlarmName
}
func (bme *ManagedEntityDefinition) String() string {
@@ -79,6 +79,16 @@
return bme.AttributeDefinitions
}
+// GetClassSupport returns ONUs support of this class
+func (bme ManagedEntityDefinition) GetClassSupport() ClassSupport {
+ return bme.Support
+}
+
+// GetAlarmMap returns the Alarm bit number to name map
+func (bme ManagedEntityDefinition) GetAlarmMap() AlarmMap {
+ return bme.Alarms
+}
+
func (bme ManagedEntityDefinition) DecodeAttributes(mask uint16, data []byte, p gopacket.PacketBuilder, msgType byte) (AttributeValueMap, error) {
if (mask | bme.GetAllowedAttributeMask()) != bme.GetAllowedAttributeMask() {
// TODO: Provide custom error code so a response 'result' can properly be coded