Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * Unless required by applicable law or agreed to in writing, software |
| 9 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | * See the License for the specific language governing permissions and |
| 12 | * limitations under the License. |
| 13 | */ |
| 14 | /* |
| 15 | * NOTE: This file was generated, manual edits will be overwritten! |
| 16 | * |
| 17 | * Generated by 'goCodeGenerator.py': |
| 18 | * https://github.com/cboling/OMCI-parser/README.md |
| 19 | */ |
| 20 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const PhysicalPathTerminationPointEthernetUniClassId ClassID = ClassID(11) |
| 25 | |
| 26 | var physicalpathterminationpointethernetuniBME *ManagedEntityDefinition |
| 27 | |
| 28 | // PhysicalPathTerminationPointEthernetUni (class ID #11) |
| 29 | // This ME represents the point at an Ethernet UNI where the physical path terminates and Ethernet |
| 30 | // physical level functions are performed. |
| 31 | // |
| 32 | // The ONU automatically creates an instance of this ME per port: |
| 33 | // |
| 34 | // • when the ONU has Ethernet ports built into its factory configuration; |
| 35 | // |
| 36 | // • when a cardholder is provisioned to expect a circuit pack of the Ethernet type; |
| 37 | // |
| 38 | // • when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the |
| 39 | // Ethernet type. Note that the installation of a plug-and-play card may indicate the presence of |
| 40 | // Ethernet ports via equipment ID as well as its type, and indeed may cause the ONU to instantiate |
| 41 | // a port-mapping package that specifies Ethernet ports. |
| 42 | // |
| 43 | // The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to |
| 44 | // expect an Ethernet circuit pack, nor is it equipped with an Ethernet circuit pack. |
| 45 | // |
| 46 | // Relationships |
| 47 | // An instance of this ME is associated with each instance of a pre-provisioned or real Ethernet |
| 48 | // port. |
| 49 | // |
| 50 | // Attributes |
| 51 | // Managed Entity Id |
| 52 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte |
| 53 | // number indicates the physical position of the UNI. The first byte is the slot ID (defined in |
| 54 | // clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2 bytes) |
| 55 | // |
| 56 | // Expected Type |
| 57 | // Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory) (1 byte) |
| 58 | // |
| 59 | // Sensed Type |
| 60 | // (R) (mandatory if the ONU supports circuit packs with configurable interface types, e.g., 10/100 |
| 61 | // BASE-T card) (1 byte) |
| 62 | // |
| 63 | // Auto Detection Configuration |
| 64 | // Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory for interfaces with |
| 65 | // autodetection options) (1 byte) |
| 66 | // |
| 67 | // Ethernet Loopback Configuration |
| 68 | // Upon ME instantiation, the ONU sets this attribute to 0. (R, W) (mandatory) (1 byte) |
| 69 | // |
| 70 | // Administrative State |
| 71 | // Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this |
| 72 | // ME. Administrative state is further described in clause A.1.6. (R, W) (mandatory) (1 byte) |
| 73 | // |
| 74 | // Operational State |
| 75 | // Operational state: This attribute indicates whether the ME is capable of performing its |
| 76 | // function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte) |
| 77 | // |
| 78 | // Configuration Ind |
| 79 | // The value 0 indicates that the configuration status is unknown (e.g., Ethernet link is not |
| 80 | // established or the circuit pack is not yet installed). Upon ME instantiation, the ONU sets this |
| 81 | // attribute to 0. (R) (mandatory) (1 byte) |
| 82 | // |
| 83 | // Max Frame Size |
| 84 | // Max frame size: This attribute denotes the maximum frame size allowed across this interface. |
| 85 | // Upon ME instantiation, the ONU sets the attribute to 1518. (R, W) (mandatory for G-PON, optional |
| 86 | // for ITU-T G.986 systems) (2 bytes) |
| 87 | // |
| 88 | // Dte Or Dce Ind |
| 89 | // (R, W) (mandatory) (1 byte) |
| 90 | // |
| 91 | // Pause Time |
| 92 | // Pause time: This attribute allows the PPTP to ask the subscriber terminal to temporarily suspend |
| 93 | // sending data. Units are in pause quanta (1 pause quantum is 512 bit times of the particular |
| 94 | // implementation). Values: 0..0xFFFF. Upon ME instantiation, the ONU sets this attribute to 0. |
| 95 | // (R, W) (optional) (2 bytes) |
| 96 | // |
| 97 | // Bridged Or Ip Ind |
| 98 | // Upon ME instantiation, the ONU sets this attribute to 2. (R, W) (optional) (1 byte) |
| 99 | // |
| 100 | // Arc |
| 101 | // ARC: See clause A.1.4.3. (R, W) (optional) (1 byte) |
| 102 | // |
| 103 | // Arc Interval |
| 104 | // ARC interval: See clause A.1.4.3. (R, W) (optional) (1 byte) |
| 105 | // |
| 106 | // Pppoe Filter |
| 107 | // PPPoE filter: This attribute controls filtering of PPPoE packets on this Ethernet port. The |
| 108 | // value 0 allows packets of all types. The value 1 discards everything but PPPoE packets. The |
| 109 | // default value is 0. (R, W) (optional) (1 byte) |
| 110 | // |
| 111 | // Power Control |
| 112 | // NOTE – This attribute is the equivalent of the acPSEAdminControl variable defined in clause |
| 113 | // 30.9.1.2.1 of [IEEE 802.3]. Other variables related to PoE appear in the PoE control ME. |
| 114 | // |
| 115 | type PhysicalPathTerminationPointEthernetUni struct { |
| 116 | ManagedEntityDefinition |
| 117 | Attributes AttributeValueMap |
| 118 | } |
| 119 | |
| 120 | func init() { |
| 121 | physicalpathterminationpointethernetuniBME = &ManagedEntityDefinition{ |
| 122 | Name: "PhysicalPathTerminationPointEthernetUni", |
| 123 | ClassID: 11, |
| 124 | MessageTypes: mapset.NewSetWith( |
| 125 | Get, |
| 126 | Set, |
| 127 | ), |
| 128 | AllowedAttributeMask: 0XFFFE, |
| 129 | AttributeDefinitions: AttributeDefinitionMap{ |
| 130 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0), |
| 131 | 1: ByteField("ExpectedType", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1), |
| 132 | 2: ByteField("SensedType", 0, mapset.NewSetWith(Read), true, false, false, false, 2), |
| 133 | 3: ByteField("AutoDetectionConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3), |
| 134 | 4: ByteField("EthernetLoopbackConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4), |
| 135 | 5: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5), |
| 136 | 6: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 6), |
| 137 | 7: ByteField("ConfigurationInd", 0, mapset.NewSetWith(Read), false, false, false, false, 7), |
| 138 | 8: Uint16Field("MaxFrameSize", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8), |
| 139 | 9: ByteField("DteOrDceInd", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 9), |
| 140 | 10: Uint16Field("PauseTime", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 10), |
| 141 | 11: ByteField("BridgedOrIpInd", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11), |
| 142 | 12: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 12), |
| 143 | 13: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13), |
| 144 | 14: ByteField("PppoeFilter", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 14), |
| 145 | 15: ByteField("PowerControl", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 15), |
| 146 | }, |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | // NewPhysicalPathTerminationPointEthernetUni (class ID 11 creates the basic |
| 151 | // Managed Entity definition that is used to validate an ME of this type that |
| 152 | // is received from the wire, about to be sent on the wire. |
| 153 | func NewPhysicalPathTerminationPointEthernetUni(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 154 | return NewManagedEntity(physicalpathterminationpointethernetuniBME, params...) |
| 155 | } |