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 | */ |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [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 | // NetworkDialPlanTableClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity Network dial plan table |
| 30 | const NetworkDialPlanTableClassID ClassID = ClassID(145) |
| 31 | |
| 32 | var networkdialplantableBME *ManagedEntityDefinition |
| 33 | |
| 34 | // NetworkDialPlanTable (class ID #145) |
| 35 | // The network dial plan table ME is optional for ONUs providing VoIP services. This ME is used to |
| 36 | // provision dial plans from the OLT. Instances of this ME are created and deleted by the OLT. If a |
| 37 | // non-OMCI interface is used to manage SIP for VoIP, this ME is unnecessary. |
| 38 | // |
| 39 | // Relationships |
| 40 | // An instance of this ME may be associated with one or more instances of the SIP user data ME. |
| 41 | // |
| 42 | // Attributes |
| 43 | // Managed Entity Id |
| 44 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate) |
| 45 | // (mandatory) (2-bytes) |
| 46 | // |
| 47 | // Dial Plan Number |
| 48 | // Dial plan number: This attribute indicates the current number of dial plans in the dial plan |
| 49 | // table. (R) (mandatory) (2-bytes) |
| 50 | // |
| 51 | // Dial Plan Table Max Size |
| 52 | // Dial plan table max size: This attribute defines the maximum number of dial plans that can be |
| 53 | // stored in the dial plan table. (R, setbycreate) (mandatory) (2-bytes) |
| 54 | // |
| 55 | // Critical Dial Timeout |
| 56 | // Critical dial timeout: This attribute defines the critical dial timeout for digit map |
| 57 | // processing, in milliseconds. The recommended default value is 4000-ms. (R,-W, setbycreate) |
| 58 | // (mandatory) (2-bytes) |
| 59 | // |
| 60 | // Partial Dial Timeout |
| 61 | // Partial dial timeout: This attribute defines the partial dial timeout for digit map processing, |
| 62 | // in milliseconds. The recommended default value is 16000-ms. (R,-W, setbycreate) (mandatory) |
| 63 | // (2-bytes) |
| 64 | // |
| 65 | // Dial Plan Format |
| 66 | // (R,-W, setbycreate) (mandatory) (1-byte) |
| 67 | // |
| 68 | // Dial Plan Table |
| 69 | // (R,-W) (mandatory) (30 * N bytes, where N is the number of dial plans) |
| 70 | // |
| 71 | type NetworkDialPlanTable struct { |
| 72 | ManagedEntityDefinition |
| 73 | Attributes AttributeValueMap |
| 74 | } |
| 75 | |
| 76 | func init() { |
| 77 | networkdialplantableBME = &ManagedEntityDefinition{ |
| 78 | Name: "NetworkDialPlanTable", |
| 79 | ClassID: 145, |
| 80 | MessageTypes: mapset.NewSetWith( |
| 81 | Create, |
| 82 | Delete, |
| 83 | Get, |
| 84 | GetNext, |
| 85 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 86 | SetTable, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 87 | ), |
| 88 | AllowedAttributeMask: 0xfc00, |
| 89 | AttributeDefinitions: AttributeDefinitionMap{ |
| 90 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 91 | 1: Uint16Field("DialPlanNumber", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 92 | 2: Uint16Field("DialPlanTableMaxSize", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 2), |
| 93 | 3: Uint16Field("CriticalDialTimeout", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| 94 | 4: Uint16Field("PartialDialTimeout", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4), |
| 95 | 5: ByteField("DialPlanFormat", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5), |
| 96 | 6: TableField("DialPlanTable", TableAttributeType, 0x0400, TableInfo{nil, 30}, mapset.NewSetWith(Read, Write), false, false, false, 6), |
| 97 | }, |
| 98 | Access: CreatedByOlt, |
| 99 | Support: UnknownSupport, |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | // NewNetworkDialPlanTable (class ID 145) creates the basic |
| 104 | // Managed Entity definition that is used to validate an ME of this type that |
| 105 | // is received from or transmitted to the OMCC. |
| 106 | func NewNetworkDialPlanTable(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 107 | return NewManagedEntity(*networkdialplantableBME, params...) |
| 108 | } |