-
Notifications
You must be signed in to change notification settings - Fork 5
/
voipconfigdata.go
133 lines (123 loc) · 5.48 KB
/
voipconfigdata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
* 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.
* 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':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// VoipConfigDataClassID is the 16-bit ID for the OMCI
// Managed entity VoIP config data
const VoipConfigDataClassID ClassID = ClassID(138)
var voipconfigdataBME *ManagedEntityDefinition
// VoipConfigData (class ID #138)
// The VoIP configuration data ME defines the configuration for VoIP in the ONU. The OLT uses this
// ME to discover the VoIP signalling protocols and configuration methods supported by this ONU.
// The OLT then uses this ME to select the desired signalling protocol and configuration method.
// The entity is conditionally required for ONUs that offer VoIP services.
//
// An ONU that supports VoIP services automatically creates an instance of this ME.
//
// Relationships
// One instance of this ME is associated with the ONU.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. There is only
// one instance, number 0. (R) (mandatory) (2-bytes)
//
// Available Signalling Protocols
// (R) (mandatory) (1-byte)
//
// Signalling Protocol Used
// (R,-W) (mandatory) (1-byte)
//
// Available Voip Configuration Methods
// Bits 5..24 are reserved by ITU-T. Bits 25..32 are reserved for proprietary vendor configuration
// capabilities. (R) (mandatory) (4-bytes)
//
// Voip Configuration Method Used
// (R,-W) (mandatory) (1-byte)
//
// Voip Configuration Address Pointer
// The default value is 0xFFFF (R,-W) (mandatory) (2-bytes)
//
// Voip Configuration State
// Other values are reserved. At ME instantiation, the ONU sets this attribute to 0. (R)
// (mandatory) (1-byte)
//
// Retrieve Profile
// Retrieve profile: This attribute provides a means by which the ONU may be notified that a new
// VoIP profile should be retrieved. By setting this attribute, the OLT triggers the ONU to
// retrieve a new profile. The actual value in the set action is ignored because it is the action
// of setting that is important. (W) (mandatory) (1-byte)
//
// Profile Version
// Profile version: This attribute is a character string that identifies the version of the last
// retrieved profile. (R) (mandatory) (25-bytes)
//
type VoipConfigData struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
voipconfigdataBME = &ManagedEntityDefinition{
Name: "VoipConfigData",
ClassID: 138,
MessageTypes: mapset.NewSetWith(
Get,
Set,
),
AllowedAttributeMask: 0xff00,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
1: ByteField("AvailableSignallingProtocols", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
2: ByteField("SignallingProtocolUsed", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
3: Uint32Field("AvailableVoipConfigurationMethods", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
4: ByteField("VoipConfigurationMethodUsed", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
5: Uint16Field("VoipConfigurationAddressPointer", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
6: ByteField("VoipConfigurationState", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
7: ByteField("RetrieveProfile", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Write), false, false, false, 7),
8: MultiByteField("ProfileVersion", OctetsAttributeType, 0x0100, 25, toOctets("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read), true, false, false, 8),
},
Access: CreatedByOnu,
Support: UnknownSupport,
Alarms: AlarmMap{
0: "VCD config server name",
1: "VCD config server reach",
2: "VCD config server connect",
3: "VCD config server validate",
4: "VCD config server auth",
5: "VCD config server timeout",
6: "VCD config server fail",
7: "VCD config file error",
8: "VCD subscription name",
9: "VCD subscription reach",
10: "VCD subscription connect",
11: "VCD subscription validate",
12: "VCD subscription auth",
13: "VCD subscription timeout",
14: "VCD subscription fail",
15: "VCD reboot request",
},
}
}
// NewVoipConfigData (class ID 138) creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from or transmitted to the OMCC.
func NewVoipConfigData(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*voipconfigdataBME, params...)
}