blob: 9dd9e77d988675d5822bdb2301589f05231a5e97 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const VoipConfigDataClassId ClassID = ClassID(138)
25
26var voipconfigdataBME *ManagedEntityDefinition
27
28// VoipConfigData (class ID #138)
29// The VoIP configuration data ME defines the configuration for VoIP in the ONU. The OLT uses this
30// ME to discover the VoIP signalling protocols and configuration methods supported by this ONU.
31// The OLT then uses this ME to select the desired signalling protocol and configuration method.
32// The entity is conditionally required for ONUs that offer VoIP services.
33//
34// An ONU that supports VoIP services automatically creates an instance of this ME.
35//
36// Relationships
37// One instance of this ME is associated with the ONU.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. There is only
42// one instance, number 0. (R) (mandatory) (2 bytes)
43//
44// Available Signalling Protocols
45// (R) (mandatory) (1 byte)
46//
47// Signalling Protocol Used
48// (R, W) (mandatory) (1 byte)
49//
50// Available Voip Configuration Methods
51// Bits 5..24 are reserved by ITU-T. Bits 25..32 are reserved for proprietary vendor configuration
52// capabilities. (R) (mandatory) (4 bytes)
53//
54// Voip Configuration Method Used
55// (R, W) (mandatory) (1 byte)
56//
57// Voip Configuration Address Pointer
58// The default value is 0xFFFF (R, W) (mandatory) (2 bytes)
59//
60// Voip Configuration State
61// Other values are reserved. At ME instantiation, the ONU sets this attribute to 0. (R)
62// (mandatory) (1 byte)
63//
64// Retrieve Profile
65// Retrieve profile: This attribute provides a means by which the ONU may be notified that a new
66// VoIP profile should be retrieved. By setting this attribute, the OLT triggers the ONU to
67// retrieve a new profile. The actual value in the set action is ignored because it is the action
68// of setting that is important. (W) (mandatory) (1 byte)
69//
70// Profile Version
71// Profile version: This attribute is a character string that identifies the version of the last
72// retrieved profile. (R) (mandatory) (25 bytes)
73//
74type VoipConfigData struct {
75 ManagedEntityDefinition
76 Attributes AttributeValueMap
77}
78
79func init() {
80 voipconfigdataBME = &ManagedEntityDefinition{
81 Name: "VoipConfigData",
82 ClassID: 138,
83 MessageTypes: mapset.NewSetWith(
84 Get,
85 Set,
86 ),
87 AllowedAttributeMask: 0XFF00,
88 AttributeDefinitions: AttributeDefinitionMap{
89 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
90 1: ByteField("AvailableSignallingProtocols", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
91 2: ByteField("SignallingProtocolUsed", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
92 3: Uint32Field("AvailableVoipConfigurationMethods", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
93 4: ByteField("VoipConfigurationMethodUsed", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
94 5: Uint16Field("VoipConfigurationAddressPointer", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
95 6: ByteField("VoipConfigurationState", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
96 7: ByteField("RetrieveProfile", 0, mapset.NewSetWith(Write), false, false, false, false, 7),
97 8: MultiByteField("ProfileVersion", 25, nil, mapset.NewSetWith(Read), true, false, false, false, 8),
98 },
99 }
100}
101
102// NewVoipConfigData (class ID 138 creates the basic
103// Managed Entity definition that is used to validate an ME of this type that
104// is received from the wire, about to be sent on the wire.
105func NewVoipConfigData(params ...ParamData) (*ManagedEntity, OmciErrors) {
106 return NewManagedEntity(voipconfigdataBME, params...)
107}