blob: 72ac668b5b3f7c1dc7cf66935907a0efea62ede2 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// MulticastSubscriberMonitorClassID is the 16-bit ID for the OMCI
26// Managed entity Multicast subscriber monitor
27const MulticastSubscriberMonitorClassID ClassID = ClassID(311)
28
29var multicastsubscribermonitorBME *ManagedEntityDefinition
30
31// MulticastSubscriberMonitor (class ID #311)
32// This ME provides the current status of each port with respect to its multicast subscriptions. It
33// may be useful for status monitoring or debugging purposes. The status table includes all dynamic
34// groups currently subscribed by the port.
35//
36// Relationships
37// Instances of this ME are created and deleted at the request of the OLT. One instance may exist
38// for each IEEE-802.1 UNI configured to support multicast subscription.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
44// data or IEEE-802.1p mapper ME. (R,-setbycreate) (mandatory) (2-bytes)
45//
46// Me Type
47// (R,-W, setbycreate) (mandatory) (1-byte)
48//
49// Current Multicast Bandwidth
50// Current multicast bandwidth: This attribute is the ONU's (BE) estimate of the actual bandwidth
51// currently being delivered to this particular MAC bridge port over all dynamic multicast groups.
52// (R) (optional) (4-bytes)
53//
54// Join Messages Counter
55// Join messages counter: This attribute counts the number of times the corresponding subscriber
56// sent a join message that was accepted. When full, the counter rolls over to 0. (R) (optional)
57// (4-bytes)
58//
59// Bandwidth Exceeded Counter
60// Bandwidth exceeded counter: This attribute counts the number of join messages that did exceed,
61// or would have exceeded, the max multicast bandwidth, whether accepted or denied. When full, the
62// counter rolls over to 0. (R) (optional) (4-bytes)
63//
64// Ipv4 Active Group List Table
65// (R) (mandatory) (24N bytes)
66//
67// Ipv6 Active Group List Table
68// (R) (optional) (58N bytes)
69//
70type MulticastSubscriberMonitor struct {
71 ManagedEntityDefinition
72 Attributes AttributeValueMap
73}
74
75func init() {
76 multicastsubscribermonitorBME = &ManagedEntityDefinition{
77 Name: "MulticastSubscriberMonitor",
78 ClassID: 311,
79 MessageTypes: mapset.NewSetWith(
80 Create,
81 Delete,
82 Get,
83 GetNext,
84 Set,
85 ),
86 AllowedAttributeMask: 0xfc00,
87 AttributeDefinitions: AttributeDefinitionMap{
88 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
89 1: ByteField("MeType", EnumerationAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
90 2: Uint32Field("CurrentMulticastBandwidth", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, true, false, 2),
91 3: Uint32Field("JoinMessagesCounter", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
92 4: Uint32Field("BandwidthExceededCounter", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
93 5: TableField("Ipv4ActiveGroupListTable", TableAttributeType, 0x0800, TableInfo{nil, 24}, mapset.NewSetWith(Read), false, false, false, 5),
94 6: TableField("Ipv6ActiveGroupListTable", TableAttributeType, 0x0400, TableInfo{nil, 58}, mapset.NewSetWith(Read), false, true, false, 6),
95 },
96 Access: CreatedByOlt,
97 Support: UnknownSupport,
98 }
99}
100
101// NewMulticastSubscriberMonitor (class ID 311) creates the basic
102// Managed Entity definition that is used to validate an ME of this type that
103// is received from or transmitted to the OMCC.
104func NewMulticastSubscriberMonitor(params ...ParamData) (*ManagedEntity, OmciErrors) {
105 return NewManagedEntity(*multicastsubscribermonitorBME, params...)
106}