VOL-3787: Added alarm notification decode/AlarmMap support
Change-Id: I05e6188c279f26cd413e23ec068ff0993e7070c1
diff --git a/generated/omcidefs.go b/generated/omcidefs.go
index 4b7367b..8924e7d 100644
--- a/generated/omcidefs.go
+++ b/generated/omcidefs.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':
@@ -51,6 +51,10 @@
// from the ITU-T G.988 specification.
type ClassID uint16
+// AlarmMap is a mapping of alarm bit numbers to alarm names and can be
+// used during decode of Alarm Notification messages
+type AlarmMap map[uint8]string
+
func (cid ClassID) String() string {
if entity, err := LoadManagedEntityDefinition(cid); err.StatusCode() == Success {
return fmt.Sprintf("[%s] (%d/%#x)",
@@ -255,6 +259,7 @@
GetMessageTypes() mapset.Set
GetAllowedAttributeMask() uint16
GetAttributeDefinitions() AttributeDefinitionMap
+ GetAlarmMap() AlarmMap
DecodeAttributes(uint16, []byte, gopacket.PacketBuilder, byte) (AttributeValueMap, error)
SerializeAttributes(AttributeValueMap, uint16, gopacket.SerializeBuffer, byte, int, bool) (error, uint16)