blob: a855376db83e59b14cea85a8d8b3b24ed05e731d [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const MulticastGemInterworkingTerminationPointClassId ClassID = ClassID(281)
25
26var multicastgeminterworkingterminationpointBME *ManagedEntityDefinition
27
28// MulticastGemInterworkingTerminationPoint (class ID #281)
29// An instance of this ME represents a point in a G-PON ONU where a multicast service interworks
30// with the GEM layer. At this point, a multicast bit stream is reconstructed from GEM packets.
31//
32// Instances of this ME are created and deleted by the OLT.
33//
34// Multicast interworking GEM modes of operation
35//
36// The default multicast operation of the PON is where all the multicast content streams are
37// carried in one PON layer connection (GEM port). This connection is then specified in the first
38// entry of the IPv4 or IPv6 multicast address table, as the case may be. This single entry also
39// specifies an all-inclusive IP multicast destination address (DA) range (e.g., 224.0.0.0 to
40// 239.255.255.255 in the case of IPv4). The ONU then filters the traffic based on either Ethernet
41// MAC addresses or IP addresses. The associated GEM port network CTP ME specifies the GEM port-ID
42// that supports all multicast connections.
43//
44// In the default multicast operation, all multicast content streams are placed in one PON layer
45// connection (GEM port). The OLT sets up a completely conventional model, a pointer from the
46// multicast GEM IW termination to a GEM port network CTP. The OLT configures the GEM port-ID of
47// the GEM port network CTP into the appropriate multicast address table attribute(s), along with
48// the other table fields that specify the range of IP multicast DAs. The ONU accepts the entire
49// multicast stream through the designated GEM port, then filters the traffic based on either the
50// Ethernet MAC address or IP DA.
51//
52// An optional multicast configuration supports separate multicast streams carried over separate
53// PON layer connections, i.e., on separate GEM ports. This permits the ONU to filter multicast
54// streams at the GEM level, which is efficient in hardware, while ignoring other multicast streams
55// that may be of interest to other ONUs on the PON.
56//
57// After configuring the explicit model for the first multicast GEM port, the OLT supports multiple
58// multicast GEM ports by then configuring additional entries into the multicast address table(s),
59// entries with different GEM port-IDs. The OMCI model is defined such that these ports are
60// implicitly grouped together and served by the single explicit GEM port network CTP. No
61// additional GEM network CTPs need be created or linked for the additional GEM ports.
62//
63// Several multicast GEM IW TPs can exist, each linked to separate bridge ports or mappers to serve
64// different communities of interest in a complex ONU.
65//
66// Discovery of multicast support
67//
68// The OLT uses the multicast GEM IW TP entity as the means to discover the ONU's multicast
69// capability. This entity is mandatory if multicast is supported by the ONU. If the OLT attempts
70// to create this entity on an ONU that does not support multicast, the create command fails. The
71// create or set command also fails if the OLT attempts to exploit optional features that the ONU
72// does not support, e.g., in attempting to write a multicast address table with more than a single
73// entry or to create multiple multicast GEM IW TPs.
74//
75// This ME is defined by a similarity to the unicast GEM IW TP, and a number of its attributes are
76// not meaningful in a multicast context. These attributes are set to 0 and not used, as indicated
77// in the following.
78//
79// Relationships
80// An instance of this ME exists for each occurrence of transformation of GEM packets into a
81// multicast data stream.
82//
83// Attributes
84// Managed Entity Id
85// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0xFFFF
86// is reserved. (R, setbycreate) (mandatory) (2 bytes)
87//
88// Gem Port Network Ctp Connectivity Pointer
89// GEM port network CTP connectivity pointer: This attribute points to an instance of the GEM port
90// network CTP that is associated with this multicast GEM IW TP. (R, W, setbycreate) (mandatory)
91// (2 bytes)
92//
93// Interworking Option
94// (R, W, setbycreate) (mandatory) (1 byte)
95//
96// Service Profile Pointer
97// Service profile pointer: This attribute is set to 0 and not used. For backward compatibility, it
98// may also be set to point to a MAC bridge service profile or IEEE 802.1p mapper service profile.
99// (R, W, setbycreate) (mandatory) (2 bytes)
100//
101// Pptp Counter
102// PPTP counter: This attribute represents the number of instances of PPTP MEs associated with this
103// instance of the multicast GEM IW TP. This attribute conveys no information that is not available
104// elsewhere; it may be set to 0xFF and not used. (R) (optional) (1 byte)
105//
106// Operational State
107// Operational state: This attribute indicates whether the ME is capable of performing its
108// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte)
109//
110// Gal Profile Pointer
111// GAL profile pointer: This attribute is set to 0 and not used. For backward compatibility, it may
112// also be set to point to a GAL Ethernet profile. (R, W, setbycreate) (mandatory) (2 bytes)
113//
114// Ipv6 Multicast Address Table
115// (R, W) (optional) (24N bytes, where N is the number of entries in the list.)
116//
117type MulticastGemInterworkingTerminationPoint struct {
118 ManagedEntityDefinition
119 Attributes AttributeValueMap
120}
121
122func init() {
123 multicastgeminterworkingterminationpointBME = &ManagedEntityDefinition{
124 Name: "MulticastGemInterworkingTerminationPoint",
125 ClassID: 281,
126 MessageTypes: mapset.NewSetWith(
127 Create,
128 Delete,
129 Get,
130 GetNext,
131 Set,
132 ),
133 AllowedAttributeMask: 0XFE00,
134 AttributeDefinitions: AttributeDefinitionMap{
135 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
136 1: Uint16Field("GemPortNetworkCtpConnectivityPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
137 2: ByteField("InterworkingOption", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
138 3: Uint16Field("ServiceProfilePointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
139 4: ByteField("PptpCounter", 0, mapset.NewSetWith(Read), false, false, true, false, 4),
140 5: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 5),
141 6: Uint16Field("GalProfilePointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 6),
142 7: TableField("Ipv6MulticastAddressTable", TableInfo{nil, 24}, mapset.NewSetWith(Read, Write), false, true, false, 7),
143 },
144 }
145}
146
147// NewMulticastGemInterworkingTerminationPoint (class ID 281 creates the basic
148// Managed Entity definition that is used to validate an ME of this type that
149// is received from the wire, about to be sent on the wire.
150func NewMulticastGemInterworkingTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
151 return NewManagedEntity(multicastgeminterworkingterminationpointBME, params...)
152}