blob: 46346fc64f5ceea4b9d1332f32b01a2d0a79e4e3 [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 XdslLineInventoryAndStatusDataPart1ClassId ClassID = ClassID(100)
25
26var xdsllineinventoryandstatusdatapart1BME *ManagedEntityDefinition
27
28// XdslLineInventoryAndStatusDataPart1 (class ID #100)
29// This ME contains part 1 of the line inventory and status data for an xDSL UNI. The ONU
30// automatically creates or deletes an instance of this ME upon the creation or deletion of a PPTP
31// xDSL UNI part 1.
32//
33// Relationships
34// An instance of this ME is associated with an xDSL UNI.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
39// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
40// (mandatory) (2 bytes)
41//
42// Xtu_C G.994.1 Vendor Id
43// xTU-C G.994.1 vendor ID: This is the vendor ID as inserted by the xTU-C in the ITUT G.994.1 CL
44// message. It comprises 8 octets, including a country code followed by a (regionally allocated)
45// provider code, as defined in [ITUT T.35]. (R) (mandatory) (8 bytes)
46//
47// Xtu_R G.994.1 Vendor Id
48// xTU-R G.994.1 vendor ID: This is the vendor ID as inserted by the xTU-R in the ITUT G.994.1 CLR
49// message. It comprises 8 binary octets, with the same format as the xTUC ITUT G.994.1 vendor ID.
50// (R) (mandatory) (8 bytes)
51//
52// Xtu_C System Vendor Id
53// xTU-C system vendor ID: This is the vendor ID as inserted by the xTU-C in the overhead messages
54// of [ITU-T G.992.3] and [ITU-T G.992.4]. It comprises 8 binary octets, with the same format as
55// the xTU-C ITUT G.994.1 vendor ID. (R) (mandatory) (8 bytes)
56//
57// Xtu_R System Vendor Id
58// xTU-R system vendor ID: This is the vendor ID as inserted by the xTU-R in the embedded
59// operations channel and overhead messages of [ITU-T G.992.3] and [ITUT G.992.4]. It comprises 8
60// binary octets, with the same format as the xTU-C ITUT G.994.1 vendor ID. (R) (mandatory)
61// (8 bytes)
62//
63// Xtu_C Version Number
64// xTU-C version number: This is the vendorspecific version number as inserted by the xTUC in the
65// overhead messages of [ITU-T G.992.3] and [ITU-T G.992.4]. It comprises up to 16 binary octets.
66// (R) (mandatory) (16 bytes)
67//
68// Xtu_R Version Number
69// xTU-R version number: This is the version number as inserted by the xTUR in the embedded
70// operations channel of [ITU-T G.992.1] or [ITU-T G.992.2], or the overhead messages of [ITU-T
71// G.992.3], [ITU-T G.992.4], [ITU-T G.992.5] and [ITU-T G.993.2]. The attribute value may be
72// vendor-specific, but is recommended to comprise up to 16 ASCII characters, null-terminated if it
73// is shorter than 16. The string should contain the xTU-R firmware version and the xTU-R model,
74// encoded in that order and separated by a space character: "<xTU-R firmware version><xTU-R
75// model>". It is recognized that legacy xTU-Rs may not support this format. (R) (mandatory)
76// (16 bytes)
77//
78// Xtu_C Serial Number Part 1
79// xTU-C serial number part 1: The vendorspecific serial number inserted by the xTU-C in the
80// overhead messages of [ITU-T G.992.3] and [ITU-T G.992.4] comprises up to 32 ASCII characters,
81// null terminated if it is shorter than 32 characters. This attribute contains the first 16
82// characters. (R) (mandatory) (16 bytes)
83//
84// Xtu_C Serial Number Part 2
85// xTU-C serial number part 2: This attribute contains the second 16 characters of the xTU-C serial
86// number. (R) (mandatory) (16 bytes)
87//
88// Xtu_R Serial Number Part 1
89// xTU-R serial number part 1: The serial number inserted by the xTU-R in the embedded operations
90// channel of [ITU-T G.992.1] or [ITU-T G.992.2], or the overhead messages of [ITU-T G.992.3],
91// [ITU-T G.992.4], [ITU-T G.992.5] and [ITUT G.993.2], comprises up to 32 ASCII characters,
92// nullterminated if it is shorter than 32. It is recommended that the equipment serial number, the
93// equipment model and the equipment firmware version, encoded in that order and separated by space
94// characters, be contained: "<equipment serial number><equipment model><equipment firmware
95// version>". It is recognized that legacy xTU-Rs may not support this format. This attribute
96// contains the first 16 characters. (R) (mandatory) (16 bytes)
97//
98// Xtu_R Serial Number Part 2
99// xTU-R serial number part 2: This attribute contains the second 16 characters of the xTU-R serial
100// number. (R) (mandatory) (16 bytes)
101//
102// Xtu_C Self Test Results
103// xTU-C selftest results: This parameter reports the xTU-C self-test result. It is coded in two
104// fields. The most significant octet is 0 if the self-test passed and 1 if it failed. The three
105// least significant octets are a vendor-discretionary integer that can be interpreted in
106// combination with [ITU-T G.994.1] and the system vendor ID. (R) (mandatory) (4 bytes)
107//
108// Xtu_R Self Test Results
109// xTU-R selftest results: This parameter defines the xTU-R self-test result. It is coded in two
110// fields. The most significant octet is 0 if the self-test passed and 1 if it failed. The three
111// least significant octets are a vendor-discretionary integer that can be interpreted in
112// combination with [ITU-T G.994.1] and the system vendor ID. (R) (mandatory) (4 bytes)
113//
114// Xtu_C Transmission System Capability
115// NOTE 1 – This attribute is only 7 bytes long. An eighth byte identifying VDSL2 capabilities is
116// defined in the VDSL2 line inventory and status data part 1 ME.
117//
118// Xtu_R Transmission System Capability
119// NOTE 2 – This attribute is only 7 bytes long. An eighth byte identifying VDSL2 capabilities is
120// defined in the VDSL2 line inventory and status data part 2 ME.
121//
122// Initialization Success_Failure Cause
123// (R) (mandatory) (1 byte)
124//
125type XdslLineInventoryAndStatusDataPart1 struct {
126 ManagedEntityDefinition
127 Attributes AttributeValueMap
128}
129
130func init() {
131 xdsllineinventoryandstatusdatapart1BME = &ManagedEntityDefinition{
132 Name: "XdslLineInventoryAndStatusDataPart1",
133 ClassID: 100,
134 MessageTypes: mapset.NewSetWith(
135 Get,
136 ),
137 AllowedAttributeMask: 0XFFFE,
138 AttributeDefinitions: AttributeDefinitionMap{
139 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
140 1: Uint64Field("XtuCG9941VendorId", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
141 2: Uint64Field("XtuRG9941VendorId", 0, mapset.NewSetWith(Read), false, false, false, false, 2),
142 3: Uint64Field("XtuCSystemVendorId", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
143 4: Uint64Field("XtuRSystemVendorId", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
144 5: MultiByteField("XtuCVersionNumber", 16, nil, mapset.NewSetWith(Read), false, false, false, false, 5),
145 6: MultiByteField("XtuRVersionNumber", 16, nil, mapset.NewSetWith(Read), false, false, false, false, 6),
146 7: MultiByteField("XtuCSerialNumberPart1", 16, nil, mapset.NewSetWith(Read), false, false, false, false, 7),
147 8: MultiByteField("XtuCSerialNumberPart2", 16, nil, mapset.NewSetWith(Read), false, false, false, false, 8),
148 9: MultiByteField("XtuRSerialNumberPart1", 16, nil, mapset.NewSetWith(Read), false, false, false, false, 9),
149 10: MultiByteField("XtuRSerialNumberPart2", 16, nil, mapset.NewSetWith(Read), false, false, false, false, 10),
150 11: Uint32Field("XtuCSelfTestResults", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
151 12: Uint32Field("XtuRSelfTestResults", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
152 13: MultiByteField("XtuCTransmissionSystemCapability", 7, nil, mapset.NewSetWith(Read), false, false, false, false, 13),
153 14: MultiByteField("XtuRTransmissionSystemCapability", 7, nil, mapset.NewSetWith(Read), false, false, false, false, 14),
154 15: ByteField("InitializationSuccessFailureCause", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
155 },
156 }
157}
158
159// NewXdslLineInventoryAndStatusDataPart1 (class ID 100 creates the basic
160// Managed Entity definition that is used to validate an ME of this type that
161// is received from the wire, about to be sent on the wire.
162func NewXdslLineInventoryAndStatusDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
163 return NewManagedEntity(xdsllineinventoryandstatusdatapart1BME, params...)
164}