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