blob: 8950e2f4abc2ead0d197db2210c2bd061486150d [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 VpNetworkCtpClassId ClassID = ClassID(269)
25
26var vpnetworkctpBME *ManagedEntityDefinition
27
28// VpNetworkCtp (class ID #269)
29// NOTE – In [ITU-T G.984.4], this ME is called VP network CTP-G.
30//
31// This ME represents the termination of VP links on an ONU. It aggregates connectivity
32// functionality from the network view and alarms from the network element view as well as
33// artefacts from trails. Instances of this ME are created and deleted by the OLT.
34//
35// An instance of the VP network CTP ME can be deleted only when no ATM IW VCC TP is associated
36// with it. It is the responsibility of the OLT to ensure that this condition is met.
37//
38// Relationships
39// Zero or more instances of the VP network CTP ME may exist for each instance of the IW VCC TP ME.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
44// (mandatory) (2 bytes)
45//
46// Vpi Value
47// VPI value: This attribute identifies the VPI value associated with the VP link being terminated.
48// (R, W, setbycreate) (mandatory) (2 bytes)
49//
50// Uni Pointer
51// UNI pointer: This pointer indicates the xDSL PPTP UNI associated with this VP TP. The bearer
52// channel may be indicated by the two MSBs of the pointer. (R, W, setbycreate) (mandatory)
53// (2 bytes)
54//
55// Direction
56// Direction: This attribute specifies whether the VP link is used for UNI-to-ANI (value 1), ANI-
57// to-UNI (value 2), or bidirectional (value 3) connection. (R, W, setbycreate) (mandatory)
58// (1 byte)
59//
60// Deprecated 1
61// Deprecated 1: Not used; should be set to 0. (R, W, setbycreate) (mandatory) (2 bytes)
62//
63// Deprecated 2
64// Deprecated 2: Not used; should be set to 0. (R, W, setbycreate) (mandatory) (2 bytes)
65//
66// Deprecated 3
67// Deprecated 3: Not used; should be set to 0. (R, W, setbycreate) (optional) (2 bytes)
68//
69// Deprecated 4
70// Deprecated 4: Not used; if present, should be set to 0. (R) (optional) (1 byte)
71//
72type VpNetworkCtp struct {
73 ManagedEntityDefinition
74 Attributes AttributeValueMap
75}
76
77func init() {
78 vpnetworkctpBME = &ManagedEntityDefinition{
79 Name: "VpNetworkCtp",
80 ClassID: 269,
81 MessageTypes: mapset.NewSetWith(
82 Create,
83 Delete,
84 Get,
85 Set,
86 ),
87 AllowedAttributeMask: 0XFE00,
88 AttributeDefinitions: AttributeDefinitionMap{
89 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
90 1: Uint16Field("VpiValue", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
91 2: Uint16Field("UniPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
92 3: ByteField("Direction", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
93 4: Uint16Field("Deprecated1", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, true, 4),
94 5: Uint16Field("Deprecated2", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, true, 5),
95 6: Uint16Field("Deprecated3", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, true, 6),
96 7: ByteField("Deprecated4", 0, mapset.NewSetWith(Read), false, false, true, true, 7),
97 },
98 }
99}
100
101// NewVpNetworkCtp (class ID 269 creates the basic
102// Managed Entity definition that is used to validate an ME of this type that
103// is received from the wire, about to be sent on the wire.
104func NewVpNetworkCtp(params ...ParamData) (*ManagedEntity, OmciErrors) {
105 return NewManagedEntity(vpnetworkctpBME, params...)
106}