Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [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 |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 8 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 10 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [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 | */ |
Girish Gowdra | 161d27a | 2021-05-05 12:01:44 -0700 | [diff] [blame] | 17 | /* |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [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 | */ |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 23 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 28 | // PhysicalPathTerminationPointLctUniClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity Physical path termination point LCT UNI |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 30 | const PhysicalPathTerminationPointLctUniClassID = ClassID(83) // 0x0053 |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 31 | |
| 32 | var physicalpathterminationpointlctuniBME *ManagedEntityDefinition |
| 33 | |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 34 | // PhysicalPathTerminationPointLctUni (Class ID: #83 / 0x0053) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 35 | // This ME models debug access to the ONU from any physical or logical port, for example, via a |
| 36 | // dedicated LCT UNI, via ordinary subscriber UNIs, or via the IP host config ME. |
| 37 | // |
| 38 | // The ONU automatically creates an instance of this ME per port: |
| 39 | // |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 40 | // o when the ONU has an LCT port built into its factory configuration; |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 41 | // |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 42 | // o when a cardholder is provisioned to expect a circuit pack of the LCT type; |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 43 | // |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 44 | // o when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the LCT |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 45 | // type; |
| 46 | // |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 47 | // NOTE - The installation of a plug-and-play card may indicate the presence of LCT ports via |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 48 | // equipment ID as well as its type, and indeed may cause the ONU to instantiate a port-mapping |
| 49 | // package that specifies LCT ports. |
| 50 | // |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 51 | // o when the ONU supports debug access through some other physical or logical means. |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 52 | // |
| 53 | // The ONU automatically deletes an instance of this ME when a cardholder is neither provisioned to |
| 54 | // expect an LCT circuit pack, nor is it equipped with an LCT circuit pack, or if the ONU is |
| 55 | // reconfigured in such a way that it no longer supports debug access. |
| 56 | // |
| 57 | // LCT instances are not reported during an MIB upload. |
| 58 | // |
| 59 | // Relationships |
| 60 | // An instance of this ME is associated with an instance of a real or virtual circuit pack ME |
| 61 | // classified as an LCT type. An instance of this ME may also be associated with the ONU as a |
| 62 | // whole, if the ONU supports debug access through means other than a dedicated physical LCT port. |
| 63 | // |
| 64 | // Attributes |
| 65 | // Managed Entity Id |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 66 | // This attribute uniquely identifies each instance of this ME. This 2-byte number indicates the |
| 67 | // physical position of the UNI. The first byte is the slot ID (defined in clause 9.1.5). The |
| 68 | // second byte is the port ID, with the range 1..255. If the LCT UNI is associated with the ONU as |
| 69 | // a whole, its ME ID should be 0. (R) (mandatory) (2 bytes) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 70 | // |
| 71 | // Administrative State |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 72 | // This attribute locks (1) and unlocks (0) the functions performed by this ME. Administrative |
| 73 | // state is described generically in clause-A.1.6. The LCT has additional administrative state |
| 74 | // behaviour. When the administrative state is set to lock, debug access through all physical or |
| 75 | // logical means is blocked, except that the operation of a possible ONU remote debug ME is not |
| 76 | // affected. Administrative lock of ME instance 0 overrides administrative lock of any other PPTP |
| 77 | // LCT UNIs that may exist. (R, W) (mandatory) (1-byte) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 78 | // |
| 79 | type PhysicalPathTerminationPointLctUni struct { |
| 80 | ManagedEntityDefinition |
| 81 | Attributes AttributeValueMap |
| 82 | } |
| 83 | |
| 84 | func init() { |
| 85 | physicalpathterminationpointlctuniBME = &ManagedEntityDefinition{ |
| 86 | Name: "PhysicalPathTerminationPointLctUni", |
| 87 | ClassID: 83, |
| 88 | MessageTypes: mapset.NewSetWith( |
| 89 | Get, |
| 90 | Set, |
| 91 | ), |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 92 | AllowedAttributeMask: 0x8000, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 93 | AttributeDefinitions: AttributeDefinitionMap{ |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 94 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 95 | 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1), |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 96 | }, |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 97 | Access: CreatedByOnu, |
| 98 | Support: UnknownSupport, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 99 | } |
| 100 | } |
| 101 | |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 102 | // NewPhysicalPathTerminationPointLctUni (class ID 83) creates the basic |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 103 | // Managed Entity definition that is used to validate an ME of this type that |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 104 | // is received from or transmitted to the OMCC. |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 105 | func NewPhysicalPathTerminationPointLctUni(params ...ParamData) (*ManagedEntity, OmciErrors) { |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 106 | return NewManagedEntity(*physicalpathterminationpointlctuniBME, params...) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 107 | } |