Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 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 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 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 | */ |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 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 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // VoipFeatureAccessCodesClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity VoIP feature access codes |
| 30 | const VoipFeatureAccessCodesClassID ClassID = ClassID(147) |
| 31 | |
| 32 | var voipfeatureaccesscodesBME *ManagedEntityDefinition |
| 33 | |
| 34 | // VoipFeatureAccessCodes (class ID #147) |
| 35 | // The VoIP feature access codes ME defines administrable feature access codes for the VoIP |
| 36 | // subscriber. It is optional for ONUs that support VoIP services. If a non-OMCI interface is used |
| 37 | // to manage VoIP signalling, this ME is unnecessary. |
| 38 | // |
| 39 | // Instances of this ME are created and deleted by the OLT. A VoIP feature access codes instance is |
| 40 | // needed for each unique set of feature access code attributes. |
| 41 | // |
| 42 | // Relationships |
| 43 | // An instance of this ME may be associated with one or more SIP user data MEs. |
| 44 | // |
| 45 | // Attributes |
| 46 | // Managed Entity Id |
| 47 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. (R) (mandatory) |
| 48 | // (2-bytes) |
| 49 | // |
| 50 | // Cancel Call Waiting |
| 51 | // Cancel call waiting: (R,-W) (optional) (5-bytes) |
| 52 | // |
| 53 | // Call Hold |
| 54 | // Call hold: (R,-W) (optional) (5-bytes) |
| 55 | // |
| 56 | // Call Park |
| 57 | // Call park: (R,-W) (optional) (5-bytes) |
| 58 | // |
| 59 | // Caller Id Activate |
| 60 | // Caller ID activate: (R,-W) (optional) (5-bytes) |
| 61 | // |
| 62 | // Caller Id Deactivate |
| 63 | // Caller ID deactivate: (R,-W) (optional) (5-bytes) |
| 64 | // |
| 65 | // Do Not Disturb Activation |
| 66 | // Do not disturb activation: (R,-W) (optional) (5-bytes) |
| 67 | // |
| 68 | // Do Not Disturb Deactivation |
| 69 | // Do not disturb deactivation: (R,-W) (optional) (5-bytes) |
| 70 | // |
| 71 | // Do Not Disturb Pin Change |
| 72 | // Do not disturb PIN change: (R,-W) (optional) (5-bytes) |
| 73 | // |
| 74 | // Emergency Service Number |
| 75 | // Emergency service number: (R,-W) (optional) (5-bytes) |
| 76 | // |
| 77 | // Intercom Service |
| 78 | // Intercom service: (R,-W) (optional) (5-bytes) |
| 79 | // |
| 80 | // Unattended_Blind Call Transfer |
| 81 | // Unattended/blind call transfer: (R, W) (optional) (5 bytes) |
| 82 | // |
| 83 | // Attended Call Transfer |
| 84 | // Attended call transfer: (R, W) (optional) (5 bytes) |
| 85 | // |
| 86 | type VoipFeatureAccessCodes struct { |
| 87 | ManagedEntityDefinition |
| 88 | Attributes AttributeValueMap |
| 89 | } |
| 90 | |
| 91 | func init() { |
| 92 | voipfeatureaccesscodesBME = &ManagedEntityDefinition{ |
| 93 | Name: "VoipFeatureAccessCodes", |
| 94 | ClassID: 147, |
| 95 | MessageTypes: mapset.NewSetWith( |
| 96 | Create, |
| 97 | Delete, |
| 98 | Get, |
| 99 | Set, |
| 100 | ), |
| 101 | AllowedAttributeMask: 0xfff0, |
| 102 | AttributeDefinitions: AttributeDefinitionMap{ |
| 103 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 104 | 1: MultiByteField("CancelCallWaiting", OctetsAttributeType, 0x8000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 1), |
| 105 | 2: MultiByteField("CallHold", OctetsAttributeType, 0x4000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 2), |
| 106 | 3: MultiByteField("CallPark", OctetsAttributeType, 0x2000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 3), |
| 107 | 4: MultiByteField("CallerIdActivate", OctetsAttributeType, 0x1000, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 4), |
| 108 | 5: MultiByteField("CallerIdDeactivate", OctetsAttributeType, 0x0800, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 5), |
| 109 | 6: MultiByteField("DoNotDisturbActivation", OctetsAttributeType, 0x0400, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 6), |
| 110 | 7: MultiByteField("DoNotDisturbDeactivation", OctetsAttributeType, 0x0200, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 7), |
| 111 | 8: MultiByteField("DoNotDisturbPinChange", OctetsAttributeType, 0x0100, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 8), |
| 112 | 9: MultiByteField("EmergencyServiceNumber", OctetsAttributeType, 0x0080, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 9), |
| 113 | 10: MultiByteField("IntercomService", OctetsAttributeType, 0x0040, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 10), |
| 114 | 11: MultiByteField("UnattendedBlindCallTransfer", OctetsAttributeType, 0x0020, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 11), |
| 115 | 12: MultiByteField("AttendedCallTransfer", OctetsAttributeType, 0x0010, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read, Write), false, true, false, 12), |
| 116 | }, |
| 117 | Access: CreatedByOlt, |
| 118 | Support: UnknownSupport, |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // NewVoipFeatureAccessCodes (class ID 147) creates the basic |
| 123 | // Managed Entity definition that is used to validate an ME of this type that |
| 124 | // is received from or transmitted to the OMCC. |
| 125 | func NewVoipFeatureAccessCodes(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 126 | return NewManagedEntity(*voipfeatureaccesscodesBME, params...) |
| 127 | } |