Update omci-lib-go to 2.2.0 and use new ME attribute constants instead of strings
Change-Id: If0bee47bede5e02c70f73c6c615bafc55d1389d5
diff --git a/vendor/github.com/opencord/omci-lib-go/v2/generated/onudata.go b/vendor/github.com/opencord/omci-lib-go/v2/generated/onudata.go
index 4e22678..e31b2b2 100644
--- a/vendor/github.com/opencord/omci-lib-go/v2/generated/onudata.go
+++ b/vendor/github.com/opencord/omci-lib-go/v2/generated/onudata.go
@@ -1,13 +1,13 @@
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
* Copyright 2020-present Open Networking Foundation
-
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
-
+ *
* http://www.apache.org/licenses/LICENSE-2.0
-
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -58,10 +58,14 @@
Attributes AttributeValueMap
}
+// Attribute name constants
+
+const OnuData_MibDataSync = "MibDataSync"
+
func init() {
onudataBME = &ManagedEntityDefinition{
Name: "OnuData",
- ClassID: 2,
+ ClassID: OnuDataClassID,
MessageTypes: mapset.NewSetWith(
Get,
GetAllAlarms,
@@ -73,8 +77,8 @@
),
AllowedAttributeMask: 0x8000,
AttributeDefinitions: AttributeDefinitionMap{
- 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
- 1: ByteField("MibDataSync", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
+ 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
+ 1: ByteField(OnuData_MibDataSync, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
},
Access: CreatedByOnu,
Support: UnknownSupport,