blob: e5a86a644efdc940696103dce72efd01b16c512e [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// MulticastSubscriberConfigInfoClassID is the 16-bit ID for the OMCI
26// Managed entity Multicast subscriber config info
27const MulticastSubscriberConfigInfoClassID ClassID = ClassID(310)
28
29var multicastsubscriberconfiginfoBME *ManagedEntityDefinition
30
31// MulticastSubscriberConfigInfo (class ID #310)
32// This ME organizes data associated with multicast management at subscriber ports of IEEE-802.1
33// bridges, including IEEE-802.1p mappers when the provisioning model is mapper-based rather than
34// bridge-based. Instances of this ME are created and deleted by the OLT. Because of backward
35// compatibility considerations, a subscriber port without an associated multicast subscriber
36// config info ME would be expected to support unrestricted multicast access; this ME may therefore
37// be viewed as restrictive, rather than permissive.
38//
39// Through separate attributes, this ME supports either a single multicast operations profile in
40// its backward compatible form, or a list of multicast operations profiles instead (the list may
41// of course contain a single entry). The OLT can determine whether the ONU supports the multiple
42// profile capability by performing a get operation on the optional multicast service package table
43// attribute, which exists only on ONUs that are prepared to support the feature.
44//
45// Relationships
46// An instance of this ME is associated with one instance of the MAC bridge port configuration data
47// or the IEEE-802.1p mapper service profile.
48//
49// Attributes
50// Managed Entity Id
51// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
52// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
53// data or IEEE-802.1p mapper ME. (R, setbycreate) (mandatory) (2-bytes)
54//
55// Me Type
56// (R,-W, setbycreate) (mandatory) (1-byte)
57//
58// Multicast Operations Profile Pointer
59// Multicast operations profile pointer: This attribute points to an instance of the multicast
60// operations profile. This attribute is ignored by the ONU if a non-empty multicast service
61// package table attribute is present. (R,W, set-by-create) (mandatory) (2 bytes)
62//
63// Max Simultaneous Groups
64// Max simultaneous groups: This attribute specifies the maximum number of dynamic multicast groups
65// that may be replicated to the client port at any one time. The recommended default value 0
66// specifies that no administrative limit is to be imposed. (R,-W, setbycreate) (optional)
67// (2-bytes)
68//
69// Max Multicast Bandwidth
70// Max multicast bandwidth: This attribute specifies the maximum imputed dynamic bandwidth, in
71// bytes per second, that may be delivered to the client port at any one time. The recommended
72// default value 0 specifies that no administrative limit is to be imposed. (R,-W, setbycreate)
73// (optional) (4-bytes)
74//
75// Bandwidth Enforcement
76// Bandwidth enforcement: The recommended default value of this Boolean attribute is false, and
77// specifies that attempts to exceed the max multicast bandwidth be counted but honoured. The value
78// true specifies that such attempts be counted and denied. The imputed bandwidth value is taken
79// from the dynamic access control list table, both for a new join request and for pre-existing
80// groups. (R,-W, setbycreate) (optional) (1-byte)
81//
82// Multicast Service Package Table
83// (R,-W) (optional) (20N bytes, where N is the number of entries in the table)
84//
85// Allowed Preview Groups Table
86// Each list entry begins with a table control field:
87//
88type MulticastSubscriberConfigInfo struct {
89 ManagedEntityDefinition
90 Attributes AttributeValueMap
91}
92
93func init() {
94 multicastsubscriberconfiginfoBME = &ManagedEntityDefinition{
95 Name: "MulticastSubscriberConfigInfo",
96 ClassID: 310,
97 MessageTypes: mapset.NewSetWith(
98 Create,
99 Delete,
100 Get,
101 GetNext,
102 Set,
103 ),
104 AllowedAttributeMask: 0xfe00,
105 AttributeDefinitions: AttributeDefinitionMap{
106 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
107 1: ByteField("MeType", EnumerationAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
108 2: Uint16Field("MulticastOperationsProfilePointer", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
109 3: Uint16Field("MaxSimultaneousGroups", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 3),
110 4: Uint32Field("MaxMulticastBandwidth", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 4),
111 5: ByteField("BandwidthEnforcement", EnumerationAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
112 6: TableField("MulticastServicePackageTable", TableAttributeType, 0x0400, TableInfo{nil, 20}, mapset.NewSetWith(Read, Write), false, true, false, 6),
113 7: TableField("AllowedPreviewGroupsTable", TableAttributeType, 0x0200, TableInfo{nil, 22}, mapset.NewSetWith(Read, Write), false, false, false, 7),
114 },
115 Access: CreatedByOlt,
116 Support: UnknownSupport,
117 }
118}
119
120// NewMulticastSubscriberConfigInfo (class ID 310) creates the basic
121// Managed Entity definition that is used to validate an ME of this type that
122// is received from or transmitted to the OMCC.
123func NewMulticastSubscriberConfigInfo(params ...ParamData) (*ManagedEntity, OmciErrors) {
124 return NewManagedEntity(*multicastsubscriberconfiginfoBME, params...)
125}