blob: 7054adbdf3db597be750e8f99ff2aa38bf8a6de2 [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 MacBridgePortConfigurationDataClassId ClassID = ClassID(47)
25
26var macbridgeportconfigurationdataBME *ManagedEntityDefinition
27
28// MacBridgePortConfigurationData (class ID #47)
29// This ME models a port on a MAC bridge. Instances of this ME are created and deleted by the OLT.
30//
31// Relationships
32// An instance of this ME is linked to an instance of the MAC bridge service profile. Additional
33// bridge port control capabilities are provided by implicitly linked instances of some or all of://// • MAC bridge port filter table data;//// • MAC bridge port filter pre-assign table;//// • VLAN tagging filter data;//// • Dot1 rate limiter.//// Real-time status of the bridge port is provided by implicitly linked instances of://// • MAC bridge port designation data;//// • MAC bridge port bridge table data;//// • Multicast subscriber monitor.//// Bridge port PM collection is provided by implicitly linked instances of://// • MAC bridge port PM history data;//// • Ethernet frame PM history data upstream and downstream;//// • Ethernet frame extended PM (preferred).
34//
35// Attributes
36// Managed Entity Id
37// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
38// (mandatory) (2 bytes)
39//
40// Bridge Id Pointer
41// Bridge ID pointer: This attribute points to an instance of the MAC bridge service profile.
42// (R, W, setbycreate) (mandatory) (2 bytes)
43//
44// Port Num
45// Port num: This attribute is the bridge port number. It must be unique among all ports associated
46// with a particular MAC bridge service profile. (R, W, setbycreate) (mandatory) (1 byte)
47//
48// Tp Type
49// (R, W, setbycreate) (mandatory) (1 byte)
50//
51// Tp Pointer
52// NOTE 1 – When the TP type is very high-speed digital subscriber line (VDSL) or xDSL, the two
53// MSBs may be used to indicate a bearer channel.
54//
55// Port Priority
56// Port priority: This attribute denotes the priority of the port for use in (rapid) spanning tree
57// algorithms. The range is 0..255. (R, W, setbycreate) (optional) (2 bytes)
58//
59// Port Path Cost
60// Port path cost: This attribute specifies the contribution of the port to the path cost towards
61// the spanning tree root bridge. The range is 1..65535. (R, W, setbycreate) (mandatory) (2 bytes)
62//
63// Port Spanning Tree Ind
64// Port spanning tree ind: The Boolean value true enables (R)STP LAN topology change detection at
65// this port. The value false disables topology change detection. (R, W, setbycreate) (mandatory)
66// (1 byte)
67//
68// Deprecated 1
69// Deprecated 1: This attribute is not used. If present, it should be ignored by both the ONU and
70// the OLT, except as necessary to comply with OMCI message definitions. (R, W, setbycreate)
71// (optional) (1 byte)
72//
73// Deprecated 2
74// Deprecated 2: This attribute is not used. If present, it should be ignored by both the ONU and
75// the OLT, except as necessary to comply with OMCI message definitions. (R, W, setbycreate)
76// (1 byte) (optional)
77//
78// Port Mac Address
79// Port MAC address: If the TP associated with this port has a MAC address, this attribute
80// specifies it. (R) (optional) (6 bytes)
81//
82// Outbound Td Pointer
83// Outbound TD pointer: This attribute points to a traffic descriptor that limits the traffic rate
84// leaving the MAC bridge. (R, W) (optional) (2 byte)
85//
86// Inbound Td Pointer
87// Inbound TD pointer: This attribute points to a traffic descriptor that limits the traffic rate
88// entering the MAC bridge. (R, W) (optional) (2 byte)
89//
90// Mac Learning Depth
91// NOTE 2 – If this attribute is not zero, its value overrides the value set in the MAC learning
92// depth attribute of the MAC bridge service profile.
93//
94type MacBridgePortConfigurationData struct {
95 ManagedEntityDefinition
96 Attributes AttributeValueMap
97}
98
99func init() {
100 macbridgeportconfigurationdataBME = &ManagedEntityDefinition{
101 Name: "MacBridgePortConfigurationData",
102 ClassID: 47,
103 MessageTypes: mapset.NewSetWith(
104 Create,
105 Delete,
106 Get,
107 Set,
108 ),
109 AllowedAttributeMask: 0XFFF8,
110 AttributeDefinitions: AttributeDefinitionMap{
111 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
112 1: Uint16Field("BridgeIdPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
113 2: ByteField("PortNum", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
114 3: ByteField("TpType", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
115 4: Uint16Field("TpPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4),
116 5: Uint16Field("PortPriority", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 5),
117 6: Uint16Field("PortPathCost", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 6),
118 7: ByteField("PortSpanningTreeInd", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 7),
119 8: ByteField("Deprecated1", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, true, 8),
120 9: ByteField("Deprecated2", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, true, 9),
121 10: MultiByteField("PortMacAddress", 6, nil, mapset.NewSetWith(Read), false, false, true, false, 10),
122 11: Uint16Field("OutboundTdPointer", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
123 12: Uint16Field("InboundTdPointer", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
124 13: ByteField("MacLearningDepth", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 13),
125 },
126 }
127}
128
129// NewMacBridgePortConfigurationData (class ID 47 creates the basic
130// Managed Entity definition that is used to validate an ME of this type that
131// is received from the wire, about to be sent on the wire.
132func NewMacBridgePortConfigurationData(params ...ParamData) (*ManagedEntity, OmciErrors) {
133 return NewManagedEntity(macbridgeportconfigurationdataBME, params...)
134}