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 | 34ebcb6 | 2021-02-02 12:13:58 -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 | // InterworkingVccTerminationPointClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity Interworking VCC termination point |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const InterworkingVccTerminationPointClassID = ClassID(14) // 0x000e |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var interworkingvccterminationpointBME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // InterworkingVccTerminationPoint (Class ID: #14 / 0x000e) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // An instance of this ME represents a point in the ONU where the IW of a service or underlying |
| 36 | // physical infrastructure (e.g., ADSL) to an ATM layer takes place. At this point, ATM cells are |
| 37 | // generated from a bit stream (e.g., Ethernet) or a bit stream is reconstructed from ATM cells. |
| 38 | // |
| 39 | // Instances of this ME are created and deleted by the OLT. |
| 40 | // |
| 41 | // Relationships |
| 42 | // One instance of this ME exists for each occurrence of transformation of a data stream into ATM |
| 43 | // cells and vice versa. |
| 44 | // |
| 45 | // Attributes |
| 46 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 47 | // This attribute uniquely identifies each instance of this ME. (R,-setbycreate) (mandatory) |
| 48 | // (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 49 | // |
| 50 | // Vci Value |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 51 | // This attribute identifies the VCI value associated with this IW VCC TP. (R,-W, setbycreate) |
| 52 | // (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 53 | // |
| 54 | // Vp Network Ctp Connectivity Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 55 | // This attribute points to the VP network CTP associated with this IW VCC TP. (R,-W, setbycreate) |
| 56 | // (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 57 | // |
| 58 | // Deprecated 1 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 59 | // Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 60 | // |
| 61 | // Deprecated 2 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 62 | // Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 63 | // |
| 64 | // Aal5 Profile Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 65 | // This attribute points to an instance of the AAL5 profile. (R,-W, setbycreate) (mandatory) |
| 66 | // (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 67 | // |
| 68 | // Deprecated 3 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 69 | // Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 70 | // |
| 71 | // Aal Loopback Configuration |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 72 | // This attribute sets the ATM loopback configuration. All code points are retained for backward |
| 73 | // compatibility, but some are not expected to be needed in current and future applications. |
| 74 | // |
| 75 | // 0 No loopback |
| 76 | // |
| 77 | // 1 Loopback 1, loopback of downstream traffic before FEC of AAL1 |
| 78 | // |
| 79 | // 2 Loopback 2, loopback of downstream traffic after FEC of AAL1 |
| 80 | // |
| 81 | // 3 Loopback after AAL, loopback of downstream traffic after any AAL. Loopback after AAL is |
| 82 | // depicted in Figure 9.13.4-1. |
| 83 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 84 | // The default value of this attribute is 0. (R,-W) (mandatory) (1-byte) |
| 85 | // |
| 86 | // Pptp Counter |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 87 | // This value is the number of instances of PPTP MEs associated with this instance of the IW VCC |
| 88 | // TP. (R) (optional) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 89 | // |
| 90 | // Operational State |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 91 | // This attribute indicates whether the ME is capable of performing its function. Valid values are |
| 92 | // enabled (0) and disabled (1). (R) (optional) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 93 | // |
| 94 | type InterworkingVccTerminationPoint struct { |
| 95 | ManagedEntityDefinition |
| 96 | Attributes AttributeValueMap |
| 97 | } |
| 98 | |
| 99 | func init() { |
| 100 | interworkingvccterminationpointBME = &ManagedEntityDefinition{ |
| 101 | Name: "InterworkingVccTerminationPoint", |
| 102 | ClassID: 14, |
| 103 | MessageTypes: mapset.NewSetWith( |
| 104 | Create, |
| 105 | Delete, |
| 106 | Get, |
| 107 | Set, |
| 108 | ), |
| 109 | AllowedAttributeMask: 0xff80, |
| 110 | AttributeDefinitions: AttributeDefinitionMap{ |
| 111 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 112 | 1: Uint16Field("VciValue", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 113 | 2: Uint16Field("VpNetworkCtpConnectivityPointer", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 114 | 3: ByteField("Deprecated1", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 3), |
| 115 | 4: Uint16Field("Deprecated2", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 4), |
| 116 | 5: Uint16Field("Aal5ProfilePointer", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5), |
| 117 | 6: Uint16Field("Deprecated3", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 6), |
| 118 | 7: ByteField("AalLoopbackConfiguration", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7), |
| 119 | 8: ByteField("PptpCounter", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8), |
| 120 | 9: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), true, true, false, 9), |
| 121 | }, |
| 122 | Access: CreatedByOlt, |
| 123 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 124 | Alarms: AlarmMap{ |
| 125 | 0: "End-to-end VC AIS layer management indication receiving (LMIR)", |
| 126 | 1: "End-to-end VC RDI LMIR", |
| 127 | 2: "End-to-end VC AIS layer management indication generation (LMIG)", |
| 128 | 3: "End-to-end VC RDI LMIG", |
| 129 | 4: "Segment loss of continuity", |
| 130 | 5: "End-to-end loss of continuity", |
| 131 | 6: "CSA", |
| 132 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 133 | } |
| 134 | } |
| 135 | |
| 136 | // NewInterworkingVccTerminationPoint (class ID 14) creates the basic |
| 137 | // Managed Entity definition that is used to validate an ME of this type that |
| 138 | // is received from or transmitted to the OMCC. |
| 139 | func NewInterworkingVccTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 140 | return NewManagedEntity(*interworkingvccterminationpointBME, params...) |
| 141 | } |