blob: 61f36fb25eed2539d063de8a7c9b182fdc1731b5 [file] [log] [blame]
ozgecanetsia68a475b2020-05-21 17:03:12 +03001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17/*
18* NOTE: This file was generated, manual edits will be overwritten!
19*
20* Generated by 'goCodeGenerator.py':
21* https://github.com/cboling/OMCI-parser/README.md
22*/
23package generated
24
25import "github.com/deckarep/golang-set"
26
27const MulticastOperationsProfileClassID ClassID = ClassID(309)
28
29var multicastoperationsprofileME *ManagedEntityDefinition
30
31type MulticastOperationsProfile struct{
32 ManagedEntityDefinition
33 Attributes AttributeValueMap
34}
35
36func init(){
37 multicastoperationsprofileME = &ManagedEntityDefinition{
38 Name: "MulticastOperationsProfile",
39 ClassID: 309,
40 MessageTypes: mapset.NewSetWith(
41 Create,
42 Delete,
43 Get,
44 Set,
45 GetNext,
46 ),
47 AllowedAttributeMask: 0xffff,
48 AttributeDefinitions: AttributeDefinitionMap{
49 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false,false,false,0),
50 1: ByteField("IgmpVersion", EnumerationAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
51 2: ByteField("IgmpFunction", EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
52 3: ByteField("ImmediateLeave", EnumerationAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
53 4: Uint16Field("USIgmpTci", PointerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 4),
54 5: ByteField("USIgmpTagCtrl", EnumerationAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
55 6: Uint32Field("USIgmpRate", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6),
56 7: MultiByteField("DynamicAccessControlListTable", StringAttributeType, 0x0200, 24, toOctets("AAAAAAAAAAAAAAAAAAAAAAAAAAA="), mapset.NewSetWith(Read), false, false, false, 7),
57 8: MultiByteField("StaticAccessControlListTable", StringAttributeType, 0x0100, 24, toOctets("AAAAAAAAAAAAAAAAAAAAAAAAAAA="), mapset.NewSetWith(Read), false, true, false, 8),
58 9: MultiByteField("LostGroupsListTable", StringAttributeType, 0x0080, 10, toOctets("AAAAAAAAAAAAAAAAAAAAAAAAAAA="), mapset.NewSetWith(Read), false, true, false, 9),
59 10: ByteField("Robustness", EnumerationAttributeType, 0x0040, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 10),
60 11: Uint32Field("QuerierIp", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
61 12: Uint32Field("QueryInterval", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
62 13: Uint32Field("QuerierMaxResponseTime", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
63 14: Uint32Field("LastMemberResponseTime", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
64 15: ByteField("UnauthorizedJoinBehaviour", EnumerationAttributeType, 0x0002, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 15),
65 16: MultiByteField("DSIgmpMcastTci", StringAttributeType, 0x0001, 10, toOctets("AAAAAAAAAAAAAAAAAAAAAAAAAAA="), mapset.NewSetWith(Read), false, true, false, 16),
66 },
67 Access: CreatedByOlt,
68 Support: UnknownSupport,
69 }
70}
71
72// NewMulticastOperationsProfilePoint (class ID 309) creates the basic
73// Managed Entity definition that is used to validate an ME of this type that
74// is received from or transmitted to the OMCC.
75func NewMulticastOperationsProfile(params ...ParamData) (*ManagedEntity, OmciErrors){
76 return NewManagedEntity(*multicastoperationsprofileME, params...)
77}