blob: 3f2320eea3664167bedad4c40fa7d216cdf8fb6a [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 PhysicalPathTerminationPointCesUniClassId ClassID = ClassID(12)
25
26var physicalpathterminationpointcesuniBME *ManagedEntityDefinition
27
28// PhysicalPathTerminationPointCesUni (class ID #12)
29// This ME represents the point at a CES UNI in the ONU where the physical path terminates and
30// physical level functions are performed.
31//
32// The ONU automatically creates an instance of this ME per port:
33//
34// • when the ONU has CES ports built into its factory configuration;
35//
36// • when a cardholder is provisioned to expect a circuit pack of a CES type;
37//
38// • when a cardholder provisioned for plug-and-play is equipped with a circuit pack of a CES type.
39// Note that the installation of a plug-and-play card may indicate the presence of CES ports via
40// equipment ID as well as its type and indeed may cause the ONU to instantiate a port-mapping
41// package that specifies CES ports.
42//
43// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
44// expect a CES circuit pack, nor is it equipped with a CES circuit pack.
45//
46// Relationships
47// An instance of this ME is associated with each real or pre-provisioned CES port. It can be
48// linked from a GEM IW TP, a pseudowire TP or a logical N × 64 kbit/s CTP.
49//
50// Attributes
51// Managed Entity Id
52// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
53// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
54// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2 bytes)
55//
56// Expected Type
57// Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory) (1 byte)
58//
59// Sensed Type
60// Sensed type: If the value of expected type is not 0, then the value of sensed type equals the
61// value of expected type. If expected type = 0, then the value of sensed type is one of the
62// compatible values from Table 9.1.5-1. Upon ME instantiation, the ONU sets this attribute to 0 or
63// to the value that reflects the physically present equipment. (R) (mandatory if the ONU supports
64// circuit packs with configurable interface types, e.g., C1.5/2/6.3) (1 byte)
65//
66// Ces Loopback Configuration
67// Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory) (1 byte)
68//
69// Administrative State
70// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
71// ME. Administrative state is further described in clause A.1.6. (R, W) (mandatory) (1 byte)
72//
73// Operational State
74// Operational state: This attribute indicates whether the ME is capable of performing its
75// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte)
76//
77// Framing
78// Upon ME instantiation, the ONU sets this attribute to a value that reflects the vendor's
79// default. (R, W) (optional) (1 byte)
80//
81// Encoding
82// Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory for DS1 and DS3
83// interfaces) (1 byte)
84//
85// Line Length
86// Line length: This attribute specifies the length of the twisted pair cable from a DS1 physical
87// UNI to the DSX-1 cross-connect point or the length of coaxial cable from a DS3 physical UNI to
88// the DSX-3 cross-connect point. Valid values are given in Table 9.8.1-1. Upon ME instantiation
89// for a DS1 interface, the ONU assigns the value 0 for non-power feed type DS1 and the value 6 for
90// power feed type DS1. Upon ME instantiation for a DS3 interface, the ONU sets this attribute to
91// 0x0F. (R, W) (optional) (1 byte)
92//
93// Ds1 Mode
94// In the event of conflicting values between this attribute and the (also optional) line length
95// attribute, the line length attribute is taken to be valid. This permits the separation of line
96// build-out (LBO) and power settings from smart jack and FDL behaviour. Upon ME instantiation, the
97// ONU sets this attribute to 0. (R, W) (optional) (1 byte)
98//
99// Arc
100// ARC: See clause A.1.4.3. (R, W) (optional) (1 byte)
101//
102// Arc Interval
103// ARC interval: See clause A.1.4.3. (R, W) (optional) (1 byte)
104//
105// Line Type
106// (R, W) (mandatory for DS3, E3 and multi-configuration interfaces, not applicable to other
107// interfaces) (1 byte)
108//
109type PhysicalPathTerminationPointCesUni struct {
110 ManagedEntityDefinition
111 Attributes AttributeValueMap
112}
113
114func init() {
115 physicalpathterminationpointcesuniBME = &ManagedEntityDefinition{
116 Name: "PhysicalPathTerminationPointCesUni",
117 ClassID: 12,
118 MessageTypes: mapset.NewSetWith(
119 Get,
120 Set,
121 ),
122 AllowedAttributeMask: 0XFFF0,
123 AttributeDefinitions: AttributeDefinitionMap{
124 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
125 1: ByteField("ExpectedType", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
126 2: ByteField("SensedType", 0, mapset.NewSetWith(Read), true, false, false, false, 2),
127 3: ByteField("CesLoopbackConfiguration", 0, mapset.NewSetWith(Read, Write), true, false, false, false, 3),
128 4: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
129 5: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 5),
130 6: ByteField("Framing", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
131 7: ByteField("Encoding", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 7),
132 8: ByteField("LineLength", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 8),
133 9: ByteField("Ds1Mode", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 9),
134 10: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 10),
135 11: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
136 12: ByteField("LineType", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 12),
137 },
138 }
139}
140
141// NewPhysicalPathTerminationPointCesUni (class ID 12 creates the basic
142// Managed Entity definition that is used to validate an ME of this type that
143// is received from the wire, about to be sent on the wire.
144func NewPhysicalPathTerminationPointCesUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
145 return NewManagedEntity(physicalpathterminationpointcesuniBME, params...)
146}