blob: 34a46c7da60c52667a9bd289bd24ce6e9e99c86e [file] [log] [blame]
mpagenko836a1fd2021-11-01 16:12:42 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
mpagenko836a1fd2021-11-01 16:12:42 +00005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
mpagenko836a1fd2021-11-01 16:12:42 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
mpagenko836a1fd2021-11-01 16:12:42 +000011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17/*
18 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// MgcConfigPortalClassID is the 16-bit ID for the OMCI
29// Managed entity MGC config portal
30const MgcConfigPortalClassID = ClassID(154) // 0x009a
31
32var mgcconfigportalBME *ManagedEntityDefinition
33
34// MgcConfigPortal (Class ID: #154 / 0x009a)
35// The MGC config portal ME provides a way for the OLT to discover the configuration text delivered
36// to an ONU by a non-OMCI ITU-T H.248 VoIP configuration method. Text retrieved from this ME is
37// not required to be understood by the OLT or EMS, but it may be useful for human or vendor-
38// specific analysis tools. See also the SIP config portal ME.
39//
40// An instance of this ME may be created by an ONU that supports non-OMCI ITUT-H.248 configuration.
41// It is not reported during an MIB upload.
42//
43// Relationships
44// One instance of this ME is associated with the ONU.
45//
46// Attributes
47// Managed Entity Id
48// This attribute uniquely identifies each instance of this ME. There is one instance, number 0.
49// (R, setbycreate) (mandatory) (2-bytes)
50//
51// Configuration Text Table
52// This attribute is used to pass a textual representation of the VoIP configuration back to the
53// OLT. The contents are vendor-specific. The get, get next sequence must be used with this
54// attribute since its size is unspecified. Upon ME instantiation, the ONU sets this attribute to
55// 0. (R) (mandatory) (x bytes)
56//
57type MgcConfigPortal struct {
58 ManagedEntityDefinition
59 Attributes AttributeValueMap
60}
61
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000062// Attribute name constants
63
64const MgcConfigPortal_ConfigurationTextTable = "ConfigurationTextTable"
65
mpagenko836a1fd2021-11-01 16:12:42 +000066func init() {
67 mgcconfigportalBME = &ManagedEntityDefinition{
68 Name: "MgcConfigPortal",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000069 ClassID: MgcConfigPortalClassID,
mpagenko836a1fd2021-11-01 16:12:42 +000070 MessageTypes: mapset.NewSetWith(
71 Get,
72 GetNext,
73 ),
74 AllowedAttributeMask: 0x8000,
75 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000076 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
77 1: TableField(MgcConfigPortal_ConfigurationTextTable, TableAttributeType, 0x8000, TableInfo{nil, 25}, mapset.NewSetWith(Read), true, false, false, 1),
mpagenko836a1fd2021-11-01 16:12:42 +000078 },
79 Access: CreatedByOnu,
80 Support: UnknownSupport,
81 }
82}
83
84// NewMgcConfigPortal (class ID 154) creates the basic
85// Managed Entity definition that is used to validate an ME of this type that
86// is received from or transmitted to the OMCC.
87func NewMgcConfigPortal(params ...ParamData) (*ManagedEntity, OmciErrors) {
88 return NewManagedEntity(*mgcconfigportalBME, params...)
89}