blob: 47eabb237d6e29e45c26344dfa5fe06838db5ef6 [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 PhysicalPathTerminationPointXdslUniPart2ClassId ClassID = ClassID(99)
25
26var physicalpathterminationpointxdslunipart2BME *ManagedEntityDefinition
27
28// PhysicalPathTerminationPointXdslUniPart2 (class ID #99)
29// This ME represents the point in the ONU where physical paths terminate on an xDSL CO modem
30// (xTU-C). Standards and chip sets support several forms of DSL, including VDSL2, and the xDSL ME
31// family is used for all of them, with specific extensions for technology variations.
32//
33// The ONU creates or deletes an instance of this ME at the same time it creates or deletes the
34// corresponding PPTP xDSL UNI part 1.
35//
36// Relationships
37// An instance of this ME is associated with each instance of a PPTP xDSL UNI part 1.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
42// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
43// (mandatory) (2 bytes)
44//
45// Xdsl Channel Configuration Profile For Bearer Channel 0 Downstream
46// xDSL channel configuration profile for bearer channel 0 downstream: (R, W) (optional) (2 bytes)
47//
48// Xdsl Channel Configuration Profile For Bearer Channel 1 Downstream
49// xDSL channel configuration profile for bearer channel 1 downstream: (R, W) (optional) (2 bytes)
50//
51// Xdsl Channel Configuration Profile For Bearer Channel 2 Downstream
52// xDSL channel configuration profile for bearer channel 2 downstream: (R, W) (optional) (2 bytes)
53//
54// Xdsl Channel Configuration Profile For Bearer Channel 3 Downstream
55// xDSL channel configuration profile for bearer channel 3 downstream: (R, W) (optional) (2 bytes)
56//
57// Xdsl Channel Configuration Profile For Bearer Channel 0 Upstream
58// xDSL channel configuration profile for bearer channel 0 upstream: (R, W) (optional) (2 bytes)
59//
60// Xdsl Channel Configuration Profile For Bearer Channel 1 Upstream
61// xDSL channel configuration profile for bearer channel 1 upstream: (R, W) (optional) (2 bytes)
62//
63// Xdsl Channel Configuration Profile For Bearer Channel 2 Upstream
64// xDSL channel configuration profile for bearer channel 2 upstream: (R, W) (optional) (2 bytes)
65//
66// Xdsl Channel Configuration Profile For Bearer Channel 3 Upstream
67// xDSL channel configuration profile for bearer channel 3 upstream: (R, W) (optional) (2 bytes)
68//
69type PhysicalPathTerminationPointXdslUniPart2 struct {
70 ManagedEntityDefinition
71 Attributes AttributeValueMap
72}
73
74func init() {
75 physicalpathterminationpointxdslunipart2BME = &ManagedEntityDefinition{
76 Name: "PhysicalPathTerminationPointXdslUniPart2",
77 ClassID: 99,
78 MessageTypes: mapset.NewSetWith(
79 Get,
80 Set,
81 ),
82 AllowedAttributeMask: 0XFF00,
83 AttributeDefinitions: AttributeDefinitionMap{
84 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
85 1: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 1),
86 2: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 2),
87 3: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 3),
88 4: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Downstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 4),
89 5: Uint16Field("XdslChannelConfigurationProfileForBearerChannel0Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 5),
90 6: Uint16Field("XdslChannelConfigurationProfileForBearerChannel1Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
91 7: Uint16Field("XdslChannelConfigurationProfileForBearerChannel2Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 7),
92 8: Uint16Field("XdslChannelConfigurationProfileForBearerChannel3Upstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 8),
93 },
94 }
95}
96
97// NewPhysicalPathTerminationPointXdslUniPart2 (class ID 99 creates the basic
98// Managed Entity definition that is used to validate an ME of this type that
99// is received from the wire, about to be sent on the wire.
100func NewPhysicalPathTerminationPointXdslUniPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
101 return NewManagedEntity(physicalpathterminationpointxdslunipart2BME, params...)
102}