blob: 9ca0049bcacb5bc3c35d55d198945020543a5688 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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 Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 Campanella7167ebb2020-02-24 09:56:38 +010017 /*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// NetworkDialPlanTableClassID is the 16-bit ID for the OMCI
29// Managed entity Network dial plan table
30const NetworkDialPlanTableClassID ClassID = ClassID(145)
31
32var 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//
71type NetworkDialPlanTable struct {
72 ManagedEntityDefinition
73 Attributes AttributeValueMap
74}
75
76func init() {
77 networkdialplantableBME = &ManagedEntityDefinition{
78 Name: "NetworkDialPlanTable",
79 ClassID: 145,
80 MessageTypes: mapset.NewSetWith(
81 Create,
82 Delete,
83 Get,
84 GetNext,
85 Set,
86 ),
87 AllowedAttributeMask: 0xfc00,
88 AttributeDefinitions: AttributeDefinitionMap{
89 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
90 1: Uint16Field("DialPlanNumber", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
91 2: Uint16Field("DialPlanTableMaxSize", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 2),
92 3: Uint16Field("CriticalDialTimeout", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
93 4: Uint16Field("PartialDialTimeout", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
94 5: ByteField("DialPlanFormat", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5),
95 6: TableField("DialPlanTable", TableAttributeType, 0x0400, TableInfo{nil, 30}, mapset.NewSetWith(Read, Write), false, false, false, 6),
96 },
97 Access: CreatedByOlt,
98 Support: UnknownSupport,
99 }
100}
101
102// NewNetworkDialPlanTable (class ID 145) creates the basic
103// Managed Entity definition that is used to validate an ME of this type that
104// is received from or transmitted to the OMCC.
105func NewNetworkDialPlanTable(params ...ParamData) (*ManagedEntity, OmciErrors) {
106 return NewManagedEntity(*networkdialplantableBME, params...)
107}