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 | // BbfTr069ManagementServerClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity BBF TR-069 management server |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 30 | const BbfTr069ManagementServerClassID = ClassID(340) // 0x0154 |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 31 | |
| 32 | var bbftr069managementserverBME *ManagedEntityDefinition |
| 33 | |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 34 | // BbfTr069ManagementServer (Class ID: #340 / 0x0154) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 35 | // If functions within the ONU are managed by [BBF TR-069], this ME allows OMCI configuration of |
| 36 | // the autoconfiguration server (ACS) URL and related authentication information for an ACS |
| 37 | // connection initiated by the ONU. [BBF TR-069] supports other means to discover its ACS, so not |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 38 | // all BBF-TR069-compatible ONUs necessarily support this ME. Furthermore, even if the ONU does |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 39 | // support this ME, some operators may choose not to use it. |
| 40 | // |
| 41 | // An ONU that supports OMCI configuration of ACS information automatically creates instances of |
| 42 | // this ME. |
| 43 | // |
| 44 | // Relationships |
| 45 | // An instance of the BBF TR-069 management server ME exists for each instance of a BBF TR-069 |
| 46 | // management domain within the ONU. |
| 47 | // |
| 48 | // Attributes |
| 49 | // Managed Entity Id |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 50 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 51 | // implicitly linked to an instance of a VEIP that links to the BBF TR-069 management domain. (R) |
| 52 | // (mandatory) (2-bytes) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 53 | // |
| 54 | // Administrative State |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 55 | // This attribute locks (1) and unlocks (0) the functions performed by this ME. When the |
| 56 | // administrative state is locked, the functions of this ME are disabled. BBF TR-069 connectivity |
| 57 | // to an ACS may be possible through means that do not depend on this ME. The default value of this |
| 58 | // attribute is locked. (R,W) (mandatory) (1-byte) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 59 | // |
| 60 | // Acs Network Address |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 61 | // This attribute points to an instance of a network address ME that contains URL and |
| 62 | // authentication information associated with the ACS URL. (R, W) (mandatory) (2 bytes) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 63 | // |
| 64 | // Associated Tag |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 65 | // This attribute is a TCI value for BBF TR-069 management traffic passing through the VEIP. A TCI, |
| 66 | // comprising user priority, CFI and VID, is represented by 2-bytes. The value 0xFFFF specifies |
| 67 | // that BBF TR-069 management traffic passes through the VEIP with neither a VLAN nor a priority |
| 68 | // tag. (R, W) (mandatory) (2-bytes) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 69 | // |
| 70 | type BbfTr069ManagementServer struct { |
| 71 | ManagedEntityDefinition |
| 72 | Attributes AttributeValueMap |
| 73 | } |
| 74 | |
| 75 | func init() { |
| 76 | bbftr069managementserverBME = &ManagedEntityDefinition{ |
| 77 | Name: "BbfTr069ManagementServer", |
| 78 | ClassID: 340, |
| 79 | MessageTypes: mapset.NewSetWith( |
| 80 | Get, |
| 81 | Set, |
| 82 | ), |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 83 | AllowedAttributeMask: 0xe000, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 84 | AttributeDefinitions: AttributeDefinitionMap{ |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 85 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 86 | 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1), |
| 87 | 2: Uint16Field("AcsNetworkAddress", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2), |
| 88 | 3: Uint16Field("AssociatedTag", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3), |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 89 | }, |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 90 | Access: CreatedByOnu, |
| 91 | Support: UnknownSupport, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 92 | } |
| 93 | } |
| 94 | |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 95 | // NewBbfTr069ManagementServer (class ID 340) creates the basic |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 96 | // 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] | 97 | // is received from or transmitted to the OMCC. |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 98 | func NewBbfTr069ManagementServer(params ...ParamData) (*ManagedEntity, OmciErrors) { |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 99 | return NewManagedEntity(*bbftr069managementserverBME, params...) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 100 | } |