blob: def794326487296f99ee29c0a3d632a2ce8b9e68 [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 VlanTaggingOperationConfigurationDataClassId ClassID = ClassID(78)
25
26var vlantaggingoperationconfigurationdataBME *ManagedEntityDefinition
27
28// VlanTaggingOperationConfigurationData (class ID #78)
29// This ME organizes data associated with VLAN tagging. Instances of this ME are created and
30// deleted by the OLT.
31//
32// NOTE 1 – The extended VLAN tagging operation configuration data of clause 9.3.13 is preferred
33// for new implementations.
34//
35// Relationships
36// Zero or one instance of this ME may exist for an instance of any ME that can terminate or modify
37// an Ethernet stream.//// When this ME is associated with a UNI-side TP, it performs its upstream classification and
38// tagging operations before offering the upstream frame to other filtering, bridging or switching
39// functions. In the downstream direction, the defined inverse operation is the last operation
40// performed on the frame before offering it to the UNI-side termination.//// When this ME is associated with an ANI-side TP, it performs its upstream classification and
41// tagging operations as the last step before queueing for transmission to the OLT, after having
42// received the upstream frame from other filtering, bridging or switching functions. In the
43// downstream direction, the defined inverse operation is the first operation performed on the
44// frame before offering it to possible filter, bridge or switch functions.
45//
46// Attributes
47// Managed Entity Id
48// Managed entity ID: This attribute uniquely identifies each instance of this ME. When the
49// optional association type attribute is 0 or undefined, this attribute's value is the same as the
50// ID of the ME with which this VLAN tagging operation configuration data instance is associated,
51// which may be either a PPTP Ethernet UNI or an IP host config data or an IPv6 host config data
52// ME. Otherwise, the value of the ME ID is unconstrained except by the need to be unique. (R, set-
53// by-create) (mandatory) (2 bytes)
54//
55// Upstream Vlan Tagging Operation Mode
56// (R, W, setbycreate) (mandatory) (1 byte)
57//
58// Upstream Vlan Tag Tci Value
59// Upstream VLAN tag TCI value: This attribute specifies the TCI for upstream VLAN tagging. It is
60// used when the upstream VLAN tagging operation mode is 1 or 2. (R, W, setbycreate) (mandatory)
61// (2 bytes)
62//
63// Downstream Vlan Tagging Operation Mode
64// (R, W, setbycreate) (mandatory) (1 byte)
65//
66// Association Type
67// The associated ME instance is identified by the associated ME pointer. (R, W, setbycreate)
68// (optional) (1 byte)
69//
70// Associated Me Pointer
71// NOTE 3 – When the association type is xDSL, the two MSBs may be used to indicate a bearer
72// channel.
73//
74type VlanTaggingOperationConfigurationData struct {
75 ManagedEntityDefinition
76 Attributes AttributeValueMap
77}
78
79func init() {
80 vlantaggingoperationconfigurationdataBME = &ManagedEntityDefinition{
81 Name: "VlanTaggingOperationConfigurationData",
82 ClassID: 78,
83 MessageTypes: mapset.NewSetWith(
84 Create,
85 Delete,
86 Get,
87 Set,
88 ),
89 AllowedAttributeMask: 0XF800,
90 AttributeDefinitions: AttributeDefinitionMap{
91 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
92 1: ByteField("UpstreamVlanTaggingOperationMode", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
93 2: Uint16Field("UpstreamVlanTagTciValue", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
94 3: ByteField("DownstreamVlanTaggingOperationMode", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
95 4: ByteField("AssociationType", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 4),
96 5: Uint16Field("AssociatedMePointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 5),
97 },
98 }
99}
100
101// NewVlanTaggingOperationConfigurationData (class ID 78 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 NewVlanTaggingOperationConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
105 return NewManagedEntity(vlantaggingoperationconfigurationdataBME, params...)
106}