blob: db6b216ca20203ad3622d0c23ff8b911041ba708 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Girish Gowdra161d27a2021-05-05 12:01:44 -070017/*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// VlanTaggingOperationConfigurationDataClassID is the 16-bit ID for the OMCI
29// Managed entity VLAN tagging operation configuration data
30const VlanTaggingOperationConfigurationDataClassID ClassID = ClassID(78)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
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//
Matteo Scandolof9d43412021-01-12 11:11:34 -080038// NOTE 1 - The extended VLAN tagging operation configuration data of clause 9.3.13 is preferred
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070039// 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
Matteo Scandolof9d43412021-01-12 11:11:34 -080062// (R,-W, setbycreate) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070063//
64// Upstream Vlan Tag Tci Value
65// Upstream VLAN tag TCI value: This attribute specifies the TCI for upstream VLAN tagging. It is
Matteo Scandolof9d43412021-01-12 11:11:34 -080066// used when the upstream VLAN tagging operation mode is 1 or 2. (R,-W, setbycreate) (mandatory)
67// (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070068//
69// Downstream Vlan Tagging Operation Mode
Matteo Scandolof9d43412021-01-12 11:11:34 -080070// (R,-W, setbycreate) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070071//
72// Association Type
Matteo Scandolof9d43412021-01-12 11:11:34 -080073// The associated ME instance is identified by the associated ME pointer. (R,-W, setbycreate)
74// (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070075//
76// Associated Me Pointer
Matteo Scandolof9d43412021-01-12 11:11:34 -080077// NOTE 3 - When the association type is xDSL, the two MSBs may be used to indicate a bearer
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070078// 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 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080095 AllowedAttributeMask: 0xf800,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070096 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080097 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),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700103 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800104 Access: CreatedByOlt,
105 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700106 }
107}
108
Matteo Scandolof9d43412021-01-12 11:11:34 -0800109// NewVlanTaggingOperationConfigurationData (class ID 78) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700110// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800111// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700112func NewVlanTaggingOperationConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800113 return NewManagedEntity(*vlantaggingoperationconfigurationdataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700114}