blob: 1744eeabadb9da36ae6b3957972094293c0f61cf [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 Dot1AgCfmStackClassId ClassID = ClassID(305)
25
26var dot1agcfmstackBME *ManagedEntityDefinition
27
28// Dot1AgCfmStack (class ID #305)
29// This ME reports the maintenance status of a bridge port at any given time. An ONU that supports
30// [IEEE 802.1ag] functionality automatically creates an instance of the dot1ag CFM stack ME for
31// each MAC bridge or IEEE 802.1p mapper, depending on its provisioning model.
32//
33// The dot1ag CFM stack also lists any VLANs and bridge ports against which configuration errors
34// are currently identified. The ONU should reject operations that create configuration errors.
35// However, these errors can arise because of operations on other MEs that are not necessarily
36// possible to detect during CFM configuration.
37//
38// Relationships
39// An ONU that supports [IEEE 802.1ag] creates one instance of this ME for each MAC bridge or IEEE
40// 802.1p mapper, depending on its provisioning model. It should not create an instance for an
41// IEEE 802.1p mapper that is associated with a MAC bridge.
42//
43// Attributes
44// Managed Entity Id
45// Managed entity ID: This attribute uniquely identifies an instance of this ME. Through an
46// identical ID, this ME is implicitly linked to an instance of the MAC bridge service profile ME
47// or an IEEE 802.1p mapper ME. It is expected that an ONU will implement CFM on bridges or on
48// IEEE 802.1p mappers, but not both. For precision, the reference is disambiguated by the value of
49// the layer 2 type pointer attribute. (R) (mandatory) (2 bytes)
50//
51// Layer 2 Type
52// Layer 2 type: This attribute specifies whether the dot1ag CFM stack is associated with a MAC
53// bridge service profile (value 0) or an IEEE 802.1p mapper (value 1). (R) (mandatory) (1 byte)
54//
55// Mp Status Table
56// (R) (mandatory) (18N bytes)
57//
58// Configuration Error List Table
59// (R) (mandatory) (5N bytes)
60//
61type Dot1AgCfmStack struct {
62 ManagedEntityDefinition
63 Attributes AttributeValueMap
64}
65
66func init() {
67 dot1agcfmstackBME = &ManagedEntityDefinition{
68 Name: "Dot1AgCfmStack",
69 ClassID: 305,
70 MessageTypes: mapset.NewSetWith(
71 Get,
72 GetNext,
73 ),
74 AllowedAttributeMask: 0XE000,
75 AttributeDefinitions: AttributeDefinitionMap{
76 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
77 1: ByteField("Layer2Type", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
78 2: TableField("MpStatusTable", TableInfo{nil, 18}, mapset.NewSetWith(Read), false, false, false, 2),
79 3: TableField("ConfigurationErrorListTable", TableInfo{nil, 5}, mapset.NewSetWith(Read), true, false, false, 3),
80 },
81 }
82}
83
84// NewDot1AgCfmStack (class ID 305 creates the basic
85// Managed Entity definition that is used to validate an ME of this type that
86// is received from the wire, about to be sent on the wire.
87func NewDot1AgCfmStack(params ...ParamData) (*ManagedEntity, OmciErrors) {
88 return NewManagedEntity(dot1agcfmstackBME, params...)
89}