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 VirtualEthernetInterfacePointClassId ClassID = ClassID(329) |
| 25 | |
| 26 | var virtualethernetinterfacepointBME *ManagedEntityDefinition |
| 27 | |
| 28 | // VirtualEthernetInterfacePoint (class ID #329) |
| 29 | // This ME represents the data plane hand-off point in an ONU to a separate (non-OMCI) management |
| 30 | // domain. The VEIP is managed by the OMCI, and is potentially known to the non-OMCI management |
| 31 | // domain. One or more Ethernet traffic flows are present at this boundary. |
| 32 | // |
| 33 | // Instances of this ME are automatically created and deleted by the ONU. This is necessary because |
| 34 | // the required downstream priority queues are subject to physical implementation constraints. The |
| 35 | // OLT may use one or more of the VEIPs created by the ONU. |
| 36 | // |
| 37 | // It is expected that the ONU will create one VEIP for each non-OMCI management domain. At the |
| 38 | // vendor's discretion, a VEIP may be created for each traffic class. |
| 39 | // |
| 40 | // Relationships |
| 41 | // An instance of this ME is associated with an instance of a virtual Ethernet interface between |
| 42 | // OMCI and non-OMCI management domains. |
| 43 | // |
| 44 | // Attributes |
| 45 | // Managed Entity Id |
| 46 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. When used |
| 47 | // independently of a cardholder and circuit pack, the ONU should assign IDs in the sequence 1, 2, |
| 48 | // .... When used in conjunction with a cardholder and circuit pack, this 2 byte number indicates |
| 49 | // the physical position of the VEIP. The first byte is the slot ID (defined in clause 9.1.5). The |
| 50 | // second byte is the port ID, with the range 1..255. The values 0 and 0xFFFF are reserved. (R) |
| 51 | // (mandatory) (2 bytes) |
| 52 | // |
| 53 | // Administrative State |
| 54 | // Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this |
| 55 | // ME. Administrative state is further described in clause A.1.6. (R, W) (mandatory) (1 byte) |
| 56 | // |
| 57 | // Operational State |
| 58 | // Operational state: This attribute indicates whether the ME is capable of performing its |
| 59 | // function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte) |
| 60 | // |
| 61 | // Interdomain Name |
| 62 | // Interdomain name: This attribute is a character string that provides an optional way to identify |
| 63 | // the VEIP to a non-OMCI management domain. The interface may also be identified by its ME ID, |
| 64 | // [b-IANA] assigned port and possibly other ways. If the vendor offers no information in this |
| 65 | // attribute, it should be set to a sequence of null bytes. (R, W) (optional) (25 bytes) |
| 66 | // |
| 67 | // Tcp_Udp Pointer |
| 68 | // TCP/UDP pointer: This attribute points to an instance of the TCP/UDP config data ME, which |
| 69 | // provides for OMCI management of the non-OMCI management domain's IP connectivity. If no OMCI |
| 70 | // management of the non-OMCI domain's IP connectivity is required, this attribute may be omitted |
| 71 | // or set to its default, a null pointer. (R, W) (optional) (2 bytes) |
| 72 | // |
| 73 | // Iana Assigned Port |
| 74 | // IANA assigned port: This attribute contains the TCP or UDP port value as assigned by [b-IANA] |
| 75 | // for the management protocol associated with this virtual Ethernet interface. This attribute is |
| 76 | // to be regarded as a hint, not as a requirement that management communications use this port; the |
| 77 | // actual port and protocol are specified in the associated TCP/UDP config data ME. If no port has |
| 78 | // been assigned or if the management protocol is free to be chosen at run-time, this attribute |
| 79 | // should be set to 0xFFFF. (R) (mandatory) (2 bytes) |
| 80 | // |
| 81 | type VirtualEthernetInterfacePoint struct { |
| 82 | ManagedEntityDefinition |
| 83 | Attributes AttributeValueMap |
| 84 | } |
| 85 | |
| 86 | func init() { |
| 87 | virtualethernetinterfacepointBME = &ManagedEntityDefinition{ |
| 88 | Name: "VirtualEthernetInterfacePoint", |
| 89 | ClassID: 329, |
| 90 | MessageTypes: mapset.NewSetWith( |
| 91 | Get, |
| 92 | Set, |
| 93 | ), |
| 94 | AllowedAttributeMask: 0XF800, |
| 95 | AttributeDefinitions: AttributeDefinitionMap{ |
| 96 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0), |
| 97 | 1: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1), |
| 98 | 2: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 2), |
| 99 | 3: MultiByteField("InterdomainName", 25, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 3), |
| 100 | 4: Uint16Field("TcpUdpPointer", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 4), |
| 101 | 5: Uint16Field("IanaAssignedPort", 0, mapset.NewSetWith(Read), false, false, false, false, 5), |
| 102 | }, |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // NewVirtualEthernetInterfacePoint (class ID 329 creates the basic |
| 107 | // Managed Entity definition that is used to validate an ME of this type that |
| 108 | // is received from the wire, about to be sent on the wire. |
| 109 | func NewVirtualEthernetInterfacePoint(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 110 | return NewManagedEntity(virtualethernetinterfacepointBME, params...) |
| 111 | } |