blob: db6b216ca20203ad3622d0c23ff8b911041ba708 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
David K. Bainbridgeadf422d2021-04-09 16:06:41 +000017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// VlanTaggingOperationConfigurationDataClassID is the 16-bit ID for the OMCI
29// Managed entity VLAN tagging operation configuration data
30const VlanTaggingOperationConfigurationDataClassID ClassID = ClassID(78)
31
32var vlantaggingoperationconfigurationdataBME *ManagedEntityDefinition
33
34// VlanTaggingOperationConfigurationData (class ID #78)
35// This ME organizes data associated with VLAN tagging. Instances of this ME are created and
36// deleted by the OLT.
37//
38// NOTE 1 - The extended VLAN tagging operation configuration data of clause 9.3.13 is preferred
39// for new implementations.
40//
41// Relationships
42// Zero or one instance of this ME may exist for an instance of any ME that can terminate or modify
43// an Ethernet stream.//// When this ME is associated with a UNI-side TP, it performs its upstream classification and
44// tagging operations before offering the upstream frame to other filtering, bridging or switching
45// functions. In the downstream direction, the defined inverse operation is the last operation
46// 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
47// tagging operations as the last step before queueing for transmission to the OLT, after having
48// received the upstream frame from other filtering, bridging or switching functions. In the
49// downstream direction, the defined inverse operation is the first operation performed on the
50// frame before offering it to possible filter, bridge or switch functions.
51//
52// Attributes
53// Managed Entity Id
54// Managed entity ID: This attribute uniquely identifies each instance of this ME. When the
55// optional association type attribute is 0 or undefined, this attribute's value is the same as the
56// ID of the ME with which this VLAN tagging operation configuration data instance is associated,
57// which may be either a PPTP Ethernet UNI or an IP host config data or an IPv6 host config data
58// ME. Otherwise, the value of the ME ID is unconstrained except by the need to be unique. (R, set-
59// by-create) (mandatory) (2 bytes)
60//
61// Upstream Vlan Tagging Operation Mode
62// (R,-W, setbycreate) (mandatory) (1-byte)
63//
64// Upstream Vlan Tag Tci Value
65// Upstream VLAN tag TCI value: This attribute specifies the TCI for upstream VLAN tagging. It is
66// used when the upstream VLAN tagging operation mode is 1 or 2. (R,-W, setbycreate) (mandatory)
67// (2-bytes)
68//
69// Downstream Vlan Tagging Operation Mode
70// (R,-W, setbycreate) (mandatory) (1-byte)
71//
72// Association Type
73// The associated ME instance is identified by the associated ME pointer. (R,-W, setbycreate)
74// (optional) (1-byte)
75//
76// Associated Me Pointer
77// NOTE 3 - When the association type is xDSL, the two MSBs may be used to indicate a bearer
78// channel.
79//
80type VlanTaggingOperationConfigurationData struct {
81 ManagedEntityDefinition
82 Attributes AttributeValueMap
83}
84
85func init() {
86 vlantaggingoperationconfigurationdataBME = &ManagedEntityDefinition{
87 Name: "VlanTaggingOperationConfigurationData",
88 ClassID: 78,
89 MessageTypes: mapset.NewSetWith(
90 Create,
91 Delete,
92 Get,
93 Set,
94 ),
95 AllowedAttributeMask: 0xf800,
96 AttributeDefinitions: AttributeDefinitionMap{
97 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
98 1: ByteField("UpstreamVlanTaggingOperationMode", EnumerationAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
99 2: Uint16Field("UpstreamVlanTagTciValue", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
100 3: ByteField("DownstreamVlanTaggingOperationMode", EnumerationAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
101 4: ByteField("AssociationType", EnumerationAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 4),
102 5: Uint16Field("AssociatedMePointer", PointerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
103 },
104 Access: CreatedByOlt,
105 Support: UnknownSupport,
106 }
107}
108
109// NewVlanTaggingOperationConfigurationData (class ID 78) creates the basic
110// Managed Entity definition that is used to validate an ME of this type that
111// is received from or transmitted to the OMCC.
112func NewVlanTaggingOperationConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
113 return NewManagedEntity(*vlantaggingoperationconfigurationdataBME, params...)
114}