blob: a7c9f869948748d816784e21b245cd71d47679d3 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// PhysicalPathTerminationPointPotsUniClassID is the 16-bit ID for the OMCI
26// Managed entity Physical path termination point POTS UNI
27const PhysicalPathTerminationPointPotsUniClassID ClassID = ClassID(53)
28
29var physicalpathterminationpointpotsuniBME *ManagedEntityDefinition
30
31// PhysicalPathTerminationPointPotsUni (class ID #53)
32// This ME represents a POTS UNI in the ONU, where a physical path terminates and physical path
33// level functions (analogue telephony) are performed.
34//
35// The ONU automatically creates an instance of this ME per port as follows.
36//
37// o When the ONU has POTS ports built into its factory configuration.
38//
39// o When a cardholder is provisioned to expect a circuit pack of the POTS type.
40//
41// o When a cardholder provisioned for plug-and-play is equipped with a circuit pack of the POTS
42// type. Note that the installation of a plug-and-play card may indicate the presence of POTS ports
43// via equipment ID as well as type, and indeed may cause the ONU to instantiate a port-mapping
44// package that specifies POTS ports.
45//
46// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
47// expect a POTS circuit pack, nor is it equipped with a POTS circuit pack.
48//
49// Relationships
50// An instance of this ME is associated with each real or pre-provisioned POTS port. Either a SIP
51// or a VoIP voice CTP links to the POTS UNI. Status is available from a VoIP line status ME, and
52// RTP and call control PM may be collected on this point.
53//
54// Attributes
55// Managed Entity Id
56// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2-byte
57// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
58// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
59//
60// Administrative State
61// When the administrative state is set to lock, all user functions of this UNI are blocked, and
62// alarms, TCAs and AVCs for this ME and all dependent MEs are no longer generated. Selection of a
63// default value for this attribute is outside the scope of this Recommendation. (R, W) (mandatory)
64// (1 byte)
65//
66// Deprecated
67// Deprecated: This attribute is not used and should not be supported. (R,-W) (optional) (2-bytes)
68//
69// Arc
70// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
71//
72// Arc Interval
73// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
74//
75// Impedance
76// where C1, R1, and R2 are related as shown in Figure 9.9.1-1. Upon ME instantiation, the ONU sets
77// this attribute to 0. (R,-W) (optional) (1-byte)
78//
79// Transmission Path
80// Transmission path: This attribute allows setting the POTS UNI either to full-time on-hook
81// transmission (0) or part-time on-hook transmission (1). Upon ME instantiation, the ONU sets this
82// attribute to 0. (R,-W) (optional) (1-byte)
83//
84// Rx Gain
85// Rx gain: This attribute specifies a gain value for the received signal in the form of a 2s
86// complement number. Valid values are -120 (12.0-dB) to 60 (+6.0-dB). The direction of the
87// affected signal is in the D to A direction, towards the telephone set. Upon ME instantiation,
88// the ONU sets this attribute to 0. (R, W) (optional) (1 byte)
89//
90// Tx Gain
91// Tx gain: This attribute specifies a gain value for the transmit signal in the form of a 2s
92// complement number. Valid values are -120 (12.0-dB) to 60 (+6.0-dB). The direction of the
93// affected signal is in the A to D direction, away from the telephone set. Upon ME instantiation,
94// the ONU sets this attribute to 0. (R, W) (optional) (1 byte)
95//
96// Operational State
97// Operational state: This attribute indicates whether the ME is capable of performing its
98// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
99//
100// Hook State
101// Hook state: This attribute indicates the current state of the subscriber line: 0-= on hook, 1-=
102// off hook (R) (optional) (1-byte)
103//
104// Pots Holdover Time
105// POTS holdover time: This attribute determines the time during which the POTS loop voltage is
106// held up when a LOS or softswitch connectivity is detected (please refer to the following table
107// for description of behaviours).. After the specified time elapses, the ONU drops the loop
108// voltage, and may thereby cause premises intrusion alarm or fire panel circuits to go active.
109// When the ONU ranges successfully on the PON or softswitch connectivity is restored, it restores
110// the POTS loop voltage immediately and resets the timer to zero. The attribute is expressed in
111// seconds. The default value 0 selects the vendor's factory policy. (R,-W) (optional) (2-bytes)
112//
113// Nominal Feed Voltage
114// Nominal feed voltage: This attribute indicates the designed nominal feed voltage of the POTS
115// loop. It is an absolute value with resolution 1-V. This attribute does not represent the actual
116// voltage measured on the loop, which is available through the test command. (R,-W) (optional)
117// (1-byte)
118//
119// Loss Of Softswitch
120// Loss of softswitch: This Boolean attribute controls whether the T/R holdover initiation
121// criteria. False disables loss of softswitch connectivity detection as criteria for initiating
122// the POTS holdover timer. True enables loss of softswitch connectivity detection as criteria for
123// initiating the POTS holdover timer. This attribute is optional (if not implemented, the POTS
124// holdover time is triggered on a LOS when POTS holdover is greater than zero). (R,-W) (optional)
125// (1-byte)
126//
127type PhysicalPathTerminationPointPotsUni struct {
128 ManagedEntityDefinition
129 Attributes AttributeValueMap
130}
131
132func init() {
133 physicalpathterminationpointpotsuniBME = &ManagedEntityDefinition{
134 Name: "PhysicalPathTerminationPointPotsUni",
135 ClassID: 53,
136 MessageTypes: mapset.NewSetWith(
137 Get,
138 Set,
139 Test,
140 ),
141 AllowedAttributeMask: 0xfff8,
142 AttributeDefinitions: AttributeDefinitionMap{
143 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
144 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), true, false, false, 1),
145 2: Uint16Field("Deprecated", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, true, 2),
146 3: ByteField("Arc", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), true, true, false, 3),
147 4: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
148 5: ByteField("Impedance", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5),
149 6: ByteField("TransmissionPath", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6),
150 7: ByteField("RxGain", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, true, false, 7),
151 8: ByteField("TxGain", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, true, false, 8),
152 9: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), true, true, false, 9),
153 10: ByteField("HookState", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
154 11: Uint16Field("PotsHoldoverTime", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
155 12: ByteField("NominalFeedVoltage", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
156 13: ByteField("LossOfSoftswitch", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
157 },
158 Access: CreatedByOnu,
159 Support: UnknownSupport,
160 }
161}
162
163// NewPhysicalPathTerminationPointPotsUni (class ID 53) creates the basic
164// Managed Entity definition that is used to validate an ME of this type that
165// is received from or transmitted to the OMCC.
166func NewPhysicalPathTerminationPointPotsUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
167 return NewManagedEntity(*physicalpathterminationpointpotsuniBME, params...)
168}