blob: b0471c45fbda6fa3e61c03ee3352e811d7bb7975 [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// SipConfigPortalClassID is the 16-bit ID for the OMCI
29// Managed entity SIP config portal
30const SipConfigPortalClassID = ClassID(149) // 0x0095
31
32var sipconfigportalBME *ManagedEntityDefinition
33
34// SipConfigPortal (Class ID: #149 / 0x0095)
35// The SIP config portal ME provides a way for the OLT to discover the configuration text delivered
36// to an ONU by a non-OMCI SIP VoIP configuration method ([BBF TR-069], sipping framework, etc.).
37// Text retrieved from this ME is not required to be understood by the OLT or EMS, but it may be
38// useful for human or vendor-specific analysis tools. See also the MGC config portal ME.
39//
40// An instance of this ME may be created by an ONU that supports non-OMCI SIP configuration. It is
41// 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) (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 SipConfigPortal struct {
58 ManagedEntityDefinition
59 Attributes AttributeValueMap
60}
61
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000062// Attribute name constants
63
64const SipConfigPortal_ConfigurationTextTable = "ConfigurationTextTable"
65
mpagenko836a1fd2021-11-01 16:12:42 +000066func init() {
67 sipconfigportalBME = &ManagedEntityDefinition{
68 Name: "SipConfigPortal",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000069 ClassID: SipConfigPortalClassID,
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), false, false, false, 0),
77 1: TableField(SipConfigPortal_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// NewSipConfigPortal (class ID 149) 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 NewSipConfigPortal(params ...ParamData) (*ManagedEntity, OmciErrors) {
88 return NewManagedEntity(*sipconfigportalBME, params...)
89}