blob: 9b653012f9843a0cadfab9d90580dbb86dbe261b [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// FastVectoringLineConfigurationExtensionsClassID is the 16-bit ID for the OMCI
26// Managed entity FAST vectoring line configuration extensions
27const FastVectoringLineConfigurationExtensionsClassID ClassID = ClassID(434)
28
29var fastvectoringlineconfigurationextensionsBME *ManagedEntityDefinition
30
31// FastVectoringLineConfigurationExtensions (class ID #434)
32// This ME extends FAST line configuration MEs with attributes that are specific to vectoring. An
33// instance of this ME is created and deleted by the OLT.
34//
35// Relationships
36// An instance of this ME may be associated with zero or more instances of an xDSL UNI.//// The overall FAST line configuration MEs is modelled in several parts, all of which are
37// associated together through a common ME ID (the client PPTP xDSL UNI part 3 has a single
38// pointer, which refers to the entire set of line configuration parts).
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is
43// reserved. (R, set-by-create) (mandatory) (2 bytes)
44//
45// Fext Cancellation Enabling_Disabling Upstream Fext_To_Cancel_Enableus
46// FEXT cancellation enabling/disabling upstream (FEXT_TO_CANCEL_ENABLEus): A value of 1 enables
47// and a value of 0 disables FEXT cancellation in the upstream direction from all the other
48// vectored lines into the line in the vectored group. See clause 7.1.7.2 of [ITU-T G.997.2].
49// (R,-W) (mandatory) (1-byte)
50//
51// Fext Cancellation Enabling_Disabling Downstream Fext_To_Cancel_Enableds
52// FEXT cancellation enabling/disabling downstream (FEXT_TO_CANCEL_ENABLEds): A value of 1 enables
53// and a value of 0 disables FEXT cancellation in the downstream direction from all the other
54// vectored lines into the line in the vectored group. See clause 7.1.7.1 of [ITUT-G.997.2]. (R,-W)
55// (mandatory) (1-byte)
56//
57type FastVectoringLineConfigurationExtensions struct {
58 ManagedEntityDefinition
59 Attributes AttributeValueMap
60}
61
62func init() {
63 fastvectoringlineconfigurationextensionsBME = &ManagedEntityDefinition{
64 Name: "FastVectoringLineConfigurationExtensions",
65 ClassID: 434,
66 MessageTypes: mapset.NewSetWith(
67 Create,
68 Delete,
69 Get,
70 Set,
71 ),
72 AllowedAttributeMask: 0xc000,
73 AttributeDefinitions: AttributeDefinitionMap{
74 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
75 1: ByteField("FextCancellationEnablingDisablingUpstreamFextToCancelEnableus", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
76 2: ByteField("FextCancellationEnablingDisablingDownstreamFextToCancelEnableds", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
77 },
78 Access: CreatedByOlt,
79 Support: UnknownSupport,
80 }
81}
82
83// NewFastVectoringLineConfigurationExtensions (class ID 434) creates the basic
84// Managed Entity definition that is used to validate an ME of this type that
85// is received from or transmitted to the OMCC.
86func NewFastVectoringLineConfigurationExtensions(params ...ParamData) (*ManagedEntity, OmciErrors) {
87 return NewManagedEntity(*fastvectoringlineconfigurationextensionsBME, params...)
88}