Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 4 | * |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [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 |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 8 | * |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 10 | * |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [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 | */ |
| 17 | /* |
| 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 | // SipAgentConfigData2ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity SIP agent config data 2 |
| 30 | const SipAgentConfigData2ClassID = ClassID(407) // 0x0197 |
| 31 | |
| 32 | var sipagentconfigdata2BME *ManagedEntityDefinition |
| 33 | |
| 34 | // SipAgentConfigData2 (Class ID: #407 / 0x0197) |
| 35 | // This ME supplements SIP agent config data ME. Instances of this ME are created and deleted by |
| 36 | // the OLT. |
| 37 | // |
| 38 | // Relationships |
| 39 | // An instance of this ME is associated with a SIP agent config data. |
| 40 | // |
| 41 | // Attributes |
| 42 | // Managed Entity Id |
| 43 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 44 | // implicitly linked to an instance of the corresponding SIP agent config data. Note that this |
| 45 | // entity is associated with the primary SIP agent config data (if SIP agent is involved in |
| 46 | // protection). (R, set-by-create) (mandatory) (2-bytes) |
| 47 | // |
| 48 | // In_Use_Options_Timer |
| 49 | // In-Use-Options-Timer: This attribute defines the frequency that a SIP options packet is sent to |
| 50 | // the SIP proxy in-use. When a SIP options packet is not responded to by the SIP proxy, it is |
| 51 | // marked as unavailable. Otherwise, it is marked as available. Units are seconds. The default |
| 52 | // value 0 specifies vendor-specific implementation. (R, W, set-by-create) (mandatory) (2-byte) |
| 53 | // |
| 54 | // Alternate_Options_Timer |
| 55 | // Alternate-Options-Timer: This attribute defines the frequency that a SIP options packet is sent |
| 56 | // to the standby SIP proxy. When a SIP options packet is not responded to by the standby SIP |
| 57 | // proxy, it is marked as unavailable. Otherwise, it is marked as available. Units are seconds. The |
| 58 | // default value 0 specifies vendor-specific implementation. (R, W, set-by-create) (mandatory) |
| 59 | // (2-byte) |
| 60 | // |
| 61 | // Revertive |
| 62 | // This Boolean attribute specifies whether the SIP UA is involved in revertive (true) or non- |
| 63 | // revertive (false) switching. The default value is recommended to be false. (R, W, set-by-create) |
| 64 | // (mandatory) (1 byte) |
| 65 | // |
| 66 | // Current Proxy Server Resolved Address |
| 67 | // This attribute contains the resolved IP address of the in-use SIP proxy. If the value is |
| 68 | // 0.0.x.y, where x and y are not both 0, then x.y is to be interpreted as a pointer to a large |
| 69 | // string ME that represents an IPv6 address. Otherwise, the address is an IPv4 address (R) |
| 70 | // (optional) (4-bytes) |
| 71 | // |
| 72 | // Current Proxy Server Resolved Name |
| 73 | // This attribute contains a pointer to the large string ME that contains the resolved name of the |
| 74 | // SIP proxy in-use. (R) (optional) (2-bytes) |
| 75 | // |
| 76 | // Alternate Proxy Server Resolved Address |
| 77 | // This attribute contains the resolved IP address of the alternate SIP proxy. If the value is |
| 78 | // 0.0.x.y, where x and y are not both 0, then x.y is to be interpreted as a pointer to a large |
| 79 | // string ME that represents an IPv6 address. Otherwise, the address is an IPv4 address (R) |
| 80 | // (optional) (4-bytes) |
| 81 | // |
| 82 | // Alternate Proxy Server Resolved Name |
| 83 | // This attribute contains a pointer to the large string ME that contains the resolved name of the |
| 84 | // alternate SIP proxy. (R) (optional) (2-bytes) |
| 85 | // |
| 86 | type SipAgentConfigData2 struct { |
| 87 | ManagedEntityDefinition |
| 88 | Attributes AttributeValueMap |
| 89 | } |
| 90 | |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 91 | // Attribute name constants |
| 92 | |
| 93 | const SipAgentConfigData2_InUseOptionsTimer = "InUseOptionsTimer" |
| 94 | const SipAgentConfigData2_AlternateOptionsTimer = "AlternateOptionsTimer" |
| 95 | const SipAgentConfigData2_Revertive = "Revertive" |
| 96 | const SipAgentConfigData2_CurrentProxyServerResolvedAddress = "CurrentProxyServerResolvedAddress" |
| 97 | const SipAgentConfigData2_CurrentProxyServerResolvedName = "CurrentProxyServerResolvedName" |
| 98 | const SipAgentConfigData2_AlternateProxyServerResolvedAddress = "AlternateProxyServerResolvedAddress" |
| 99 | const SipAgentConfigData2_AlternateProxyServerResolvedName = "AlternateProxyServerResolvedName" |
| 100 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 101 | func init() { |
| 102 | sipagentconfigdata2BME = &ManagedEntityDefinition{ |
| 103 | Name: "SipAgentConfigData2", |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 104 | ClassID: SipAgentConfigData2ClassID, |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 105 | MessageTypes: mapset.NewSetWith( |
| 106 | Create, |
| 107 | Delete, |
| 108 | Get, |
| 109 | Set, |
| 110 | GetCurrentData, |
| 111 | ), |
| 112 | AllowedAttributeMask: 0xfe00, |
| 113 | AttributeDefinitions: AttributeDefinitionMap{ |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 114 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 115 | 1: Uint16Field(SipAgentConfigData2_InUseOptionsTimer, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 116 | 2: Uint16Field(SipAgentConfigData2_AlternateOptionsTimer, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 117 | 3: ByteField(SipAgentConfigData2_Revertive, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| 118 | 4: Uint32Field(SipAgentConfigData2_CurrentProxyServerResolvedAddress, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4), |
| 119 | 5: Uint16Field(SipAgentConfigData2_CurrentProxyServerResolvedName, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5), |
| 120 | 6: Uint32Field(SipAgentConfigData2_AlternateProxyServerResolvedAddress, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6), |
| 121 | 7: Uint16Field(SipAgentConfigData2_AlternateProxyServerResolvedName, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7), |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 122 | }, |
| 123 | Access: CreatedByOlt, |
| 124 | Support: UnknownSupport, |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | // NewSipAgentConfigData2 (class ID 407) creates the basic |
| 129 | // Managed Entity definition that is used to validate an ME of this type that |
| 130 | // is received from or transmitted to the OMCC. |
| 131 | func NewSipAgentConfigData2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 132 | return NewManagedEntity(*sipagentconfigdata2BME, params...) |
| 133 | } |