Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 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 | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 16 | |
| 17 | //Package adaptercore provides the utility for olt devices, flows and statistics |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 18 | package adaptercore |
Girish Gowdru | 0c588b2 | 2019-04-23 23:24:56 -0400 | [diff] [blame] | 19 | |
| 20 | import ( |
Esin Karaman | ccb714b | 2019-11-29 15:02:06 +0000 | [diff] [blame] | 21 | "github.com/opencord/voltha-lib-go/v3/pkg/flows" |
| 22 | "github.com/opencord/voltha-lib-go/v3/pkg/log" |
| 23 | ofp "github.com/opencord/voltha-protos/v3/go/openflow_13" |
| 24 | "github.com/opencord/voltha-protos/v3/go/voltha" |
Girish Gowdru | 0c588b2 | 2019-04-23 23:24:56 -0400 | [diff] [blame] | 25 | ) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 26 | |
| 27 | /*===================================================================== |
| 28 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 29 | @TODO: Looks like this Flow id concept below is not used anywhere |
| 30 | Propose to remove the below documentation of Flow Id on confirmation |
| 31 | of the same |
| 32 | |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 33 | Flow id |
| 34 | |
| 35 | Identifies a flow within a single OLT |
| 36 | Flow Id is unique per OLT |
| 37 | Multiple GEM ports can map to same flow id |
| 38 | |
| 39 | 13 11 4 0 |
| 40 | +--------+--------------+------+ |
| 41 | | pon id | onu id | Flow | |
| 42 | | | | idx | |
| 43 | +--------+--------------+------+ |
| 44 | |
| 45 | 14 bits = 16384 flows (per OLT). |
| 46 | |
| 47 | pon id = 4 bits = 16 PON ports |
| 48 | onu id = 7 bits = 128 ONUss per PON port |
| 49 | Flow index = 3 bits = 4 bi-directional flows per ONU |
| 50 | = 8 uni-directional flows per ONU |
| 51 | |
| 52 | |
| 53 | Logical (OF) UNI port number |
| 54 | |
| 55 | OpenFlow port number corresponding to PON UNI |
| 56 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 57 | 20 12 4 0 |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 58 | +--+--------+--------------+------+ |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 59 | |0 | pon id | onu id |uni id| |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 60 | +--+--------+--------------+------+ |
| 61 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 62 | pon id = 8 bits = 256 PON ports |
| 63 | onu id = 8 bits = 256 ONUs per PON port |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 64 | |
| 65 | Logical (OF) NNI port number |
| 66 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 67 | OpenFlow port number corresponding to PON NNI |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 68 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 69 | 20 0 |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 70 | +--+----------------------------+ |
| 71 | |1 | intf_id | |
| 72 | +--+----------------------------+ |
| 73 | |
| 74 | No overlap with UNI port number space |
| 75 | |
| 76 | |
| 77 | PON OLT (OF) port number |
| 78 | |
| 79 | OpenFlow port number corresponding to PON OLT ports |
| 80 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 81 | 31 28 0 |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 82 | +--------+------------------------~~~------+ |
| 83 | | 0x2 | pon intf id | |
| 84 | +--------+------------------------~~~------+ |
| 85 | */ |
| 86 | |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 87 | const ( |
| 88 | // Number of bits for the physical UNI of the ONUs |
| 89 | bitsForUniID = 4 |
| 90 | // Number of bits for the ONU ID |
| 91 | bitsForONUID = 8 |
| 92 | // Number of bits for PON ID |
| 93 | bitsForPONID = 8 |
| 94 | // Number of bits to differentiate between UNI and NNI Logical Port |
| 95 | bitsForUNINNIDiff = 1 |
| 96 | //MaxOnusPerPon is Max number of ONUs on any PON port |
| 97 | MaxOnusPerPon = (1 << bitsForONUID) |
| 98 | //MaxPonsPerOlt is Max number of PON ports on any OLT |
| 99 | MaxPonsPerOlt = (1 << bitsForPONID) |
| 100 | //MaxUnisPerOnu is the Max number of UNI ports on any ONU |
| 101 | MaxUnisPerOnu = (1 << bitsForUniID) |
| 102 | //Bit position where the differentiation bit is located |
| 103 | nniUniDiffPos = (bitsForUniID + bitsForONUID + bitsForPONID) |
| 104 | //Bit position where the marker for PON port type of OF port is present |
| 105 | ponIntfMarkerPos = 28 |
| 106 | //Value of marker used to distinguish PON port type of OF port |
| 107 | ponIntfMarkerValue = 0x2 |
David K. Bainbridge | 794735f | 2020-02-11 21:01:37 -0800 | [diff] [blame] | 108 | // Number of bits for NNI ID |
| 109 | bitsforNNIID = 20 |
| 110 | // minNniIntPortNum is used to store start range of nni port number (1 << 20) 1048576 |
| 111 | minNniIntPortNum = (1 << bitsforNNIID) |
| 112 | // maxNniPortNum is used to store the maximum range of nni port number ((1 << 21)-1) 2097151 |
| 113 | maxNniPortNum = ((1 << (bitsforNNIID + 1)) - 1) |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 114 | ) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 115 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 116 | //MinUpstreamPortID value |
| 117 | var MinUpstreamPortID = 0xfffd |
manikkaraj k | 17652a7 | 2019-05-06 09:06:36 -0400 | [diff] [blame] | 118 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 119 | //MaxUpstreamPortID value |
| 120 | var MaxUpstreamPortID = 0xfffffffd |
| 121 | |
| 122 | var controllerPorts = []uint32{0xfffd, 0x7ffffffd, 0xfffffffd} |
| 123 | |
| 124 | //MkUniPortNum returns new UNIportNum based on intfID, inuID and uniID |
| 125 | func MkUniPortNum(intfID, onuID, uniID uint32) uint32 { |
gerardo.laurenzi | 72c8438 | 2019-07-11 15:03:46 +0000 | [diff] [blame] | 126 | var limit = int(onuID) |
| 127 | if limit > MaxOnusPerPon { |
| 128 | log.Warn("Warning: exceeded the MAX ONUS per PON") |
| 129 | } |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 130 | return (intfID << (bitsForUniID + bitsForONUID)) | (onuID << bitsForUniID) | uniID |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 131 | } |
| 132 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 133 | //OnuIDFromPortNum returns ONUID derived from portNumber |
| 134 | func OnuIDFromPortNum(portNum uint32) uint32 { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 135 | return (portNum >> bitsForUniID) & (MaxOnusPerPon - 1) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 136 | } |
| 137 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 138 | //IntfIDFromUniPortNum returns IntfID derived from portNum |
| 139 | func IntfIDFromUniPortNum(portNum uint32) uint32 { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 140 | return (portNum >> (bitsForUniID + bitsForONUID)) & (MaxPonsPerOlt - 1) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 141 | } |
| 142 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 143 | //UniIDFromPortNum return UniID derived from portNum |
| 144 | func UniIDFromPortNum(portNum uint32) uint32 { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 145 | return (portNum) & (MaxUnisPerOnu - 1) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 146 | } |
| 147 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 148 | //IntfIDToPortNo returns portId derived from intftype, intfId and portType |
| 149 | func IntfIDToPortNo(intfID uint32, intfType voltha.Port_PortType) uint32 { |
Girish Gowdru | 0c588b2 | 2019-04-23 23:24:56 -0400 | [diff] [blame] | 150 | if (intfType) == voltha.Port_ETHERNET_NNI { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 151 | return (1 << nniUniDiffPos) | intfID |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 152 | } |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 153 | if (intfType) == voltha.Port_PON_OLT { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 154 | return (ponIntfMarkerValue << ponIntfMarkerPos) | intfID |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 155 | } |
| 156 | return 0 |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 157 | } |
| 158 | |
Naga Manjunath | 7615e55 | 2019-10-11 22:35:47 +0530 | [diff] [blame] | 159 | //PortNoToIntfID returns portnumber derived from interfaceID |
| 160 | func PortNoToIntfID(portno uint32, intfType voltha.Port_PortType) uint32 { |
| 161 | if (intfType) == voltha.Port_ETHERNET_NNI { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 162 | return (1 << nniUniDiffPos) ^ portno |
Naga Manjunath | 7615e55 | 2019-10-11 22:35:47 +0530 | [diff] [blame] | 163 | } |
| 164 | if (intfType) == voltha.Port_PON_OLT { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 165 | return (ponIntfMarkerValue << ponIntfMarkerPos) ^ portno |
Naga Manjunath | 7615e55 | 2019-10-11 22:35:47 +0530 | [diff] [blame] | 166 | } |
| 167 | return 0 |
| 168 | } |
| 169 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 170 | //IntfIDFromNniPortNum returns Intf ID derived from portNum |
David K. Bainbridge | 794735f | 2020-02-11 21:01:37 -0800 | [diff] [blame] | 171 | func IntfIDFromNniPortNum(portNum uint32) (uint32, error) { |
| 172 | if portNum < minNniIntPortNum || portNum > maxNniPortNum { |
| 173 | log.Errorw("NNIPortNumber is not in valid range", log.Fields{"portNum": portNum}) |
| 174 | return uint32(0), ErrInvalidPortRange |
| 175 | } |
| 176 | return (portNum & 0xFFFF), nil |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 177 | } |
| 178 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 179 | //IntfIDToPortTypeName returns port type derived from the intfId |
| 180 | func IntfIDToPortTypeName(intfID uint32) voltha.Port_PortType { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 181 | if ((ponIntfMarkerValue << ponIntfMarkerPos) ^ intfID) < MaxPonsPerOlt { |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 182 | return voltha.Port_PON_OLT |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 183 | } |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 184 | if (intfID & (1 << nniUniDiffPos)) == (1 << nniUniDiffPos) { |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 185 | return voltha.Port_ETHERNET_NNI |
| 186 | } |
| 187 | return voltha.Port_ETHERNET_UNI |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 188 | } |
| 189 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 190 | //ExtractAccessFromFlow returns AccessDevice information |
| 191 | func ExtractAccessFromFlow(inPort, outPort uint32) (uint32, uint32, uint32, uint32) { |
Girish Gowdru | 0c588b2 | 2019-04-23 23:24:56 -0400 | [diff] [blame] | 192 | if IsUpstream(outPort) { |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 193 | return inPort, IntfIDFromUniPortNum(inPort), OnuIDFromPortNum(inPort), UniIDFromPortNum(inPort) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 194 | } |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 195 | return outPort, IntfIDFromUniPortNum(outPort), OnuIDFromPortNum(outPort), UniIDFromPortNum(outPort) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 196 | } |
| 197 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 198 | //IsUpstream returns true for Upstream and false for downstream |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 199 | func IsUpstream(outPort uint32) bool { |
manikkaraj k | 17652a7 | 2019-05-06 09:06:36 -0400 | [diff] [blame] | 200 | for _, port := range controllerPorts { |
| 201 | if port == outPort { |
| 202 | return true |
| 203 | } |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 204 | } |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 205 | return (outPort & (1 << nniUniDiffPos)) == (1 << nniUniDiffPos) |
Manjunath Vanaraj | 39ecd41 | 2019-03-15 20:05:41 +0530 | [diff] [blame] | 206 | } |
manikkaraj k | 17652a7 | 2019-05-06 09:06:36 -0400 | [diff] [blame] | 207 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 208 | //IsControllerBoundFlow returns true/false |
manikkaraj k | 17652a7 | 2019-05-06 09:06:36 -0400 | [diff] [blame] | 209 | func IsControllerBoundFlow(outPort uint32) bool { |
| 210 | for _, port := range controllerPorts { |
| 211 | if port == outPort { |
| 212 | return true |
| 213 | } |
| 214 | } |
| 215 | return false |
| 216 | } |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 217 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 218 | //OnuIDFromUniPortNum returns onuId from give portNum information. |
| 219 | func OnuIDFromUniPortNum(portNum uint32) uint32 { |
Amit Ghosh | d4cbe48 | 2019-11-21 12:07:14 +0000 | [diff] [blame] | 220 | return (portNum >> bitsForUniID) & (MaxOnusPerPon - 1) |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 221 | } |
| 222 | |
Humera Kouser | 94d7a84 | 2019-08-25 19:04:32 -0400 | [diff] [blame] | 223 | //FlowExtractInfo fetches uniport from the flow, based on which it gets and returns ponInf, onuID, uniID, inPort and ethType |
| 224 | func FlowExtractInfo(flow *ofp.OfpFlowStats, flowDirection string) (uint32, uint32, uint32, uint32, uint32, uint32, error) { |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 225 | var uniPortNo uint32 |
| 226 | var ponIntf uint32 |
| 227 | var onuID uint32 |
| 228 | var uniID uint32 |
Humera Kouser | 94d7a84 | 2019-08-25 19:04:32 -0400 | [diff] [blame] | 229 | var inPort uint32 |
| 230 | var ethType uint32 |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 231 | |
| 232 | if flowDirection == "upstream" { |
Scott Baker | 355d174 | 2019-10-24 10:57:52 -0700 | [diff] [blame] | 233 | if uniPortNo = flows.GetChildPortFromTunnelId(flow); uniPortNo == 0 { |
| 234 | for _, field := range flows.GetOfbFields(flow) { |
| 235 | if field.GetType() == flows.IN_PORT { |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 236 | uniPortNo = field.GetPort() |
| 237 | break |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | } else if flowDirection == "downstream" { |
Scott Baker | 355d174 | 2019-10-24 10:57:52 -0700 | [diff] [blame] | 242 | if uniPortNo = flows.GetChildPortFromTunnelId(flow); uniPortNo == 0 { |
| 243 | for _, field := range flows.GetOfbFields(flow) { |
| 244 | if field.GetType() == flows.METADATA { |
| 245 | for _, action := range flows.GetActions(flow) { |
| 246 | if action.Type == flows.OUTPUT { |
Humera Kouser | 94d7a84 | 2019-08-25 19:04:32 -0400 | [diff] [blame] | 247 | if out := action.GetOutput(); out != nil { |
| 248 | uniPortNo = out.GetPort() |
| 249 | } |
| 250 | break |
| 251 | } |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 252 | } |
Scott Baker | 355d174 | 2019-10-24 10:57:52 -0700 | [diff] [blame] | 253 | } else if field.GetType() == flows.IN_PORT { |
Humera Kouser | 94d7a84 | 2019-08-25 19:04:32 -0400 | [diff] [blame] | 254 | inPort = field.GetPort() |
Scott Baker | 355d174 | 2019-10-24 10:57:52 -0700 | [diff] [blame] | 255 | } else if field.GetType() == flows.ETH_TYPE { |
Humera Kouser | 94d7a84 | 2019-08-25 19:04:32 -0400 | [diff] [blame] | 256 | ethType = field.GetEthType() |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 257 | } |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | if uniPortNo == 0 { |
David K. Bainbridge | 794735f | 2020-02-11 21:01:37 -0800 | [diff] [blame] | 263 | return 0, 0, 0, 0, 0, 0, NewErrNotFound("pon-interface", log.Fields{ |
| 264 | "flow-direction": flowDirection}, nil) |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 265 | } |
| 266 | |
Girish Gowdru | 6a80bbd | 2019-07-02 07:36:09 -0700 | [diff] [blame] | 267 | ponIntf = IntfIDFromUniPortNum(uniPortNo) |
| 268 | onuID = OnuIDFromUniPortNum(uniPortNo) |
| 269 | uniID = UniIDFromPortNum(uniPortNo) |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 270 | |
Girish Gowdra | 3d63303 | 2019-12-10 16:37:05 +0530 | [diff] [blame] | 271 | log.Debugw("flow extract info result", |
| 272 | log.Fields{"uniPortNo": uniPortNo, "ponIntf": ponIntf, |
| 273 | "onuID": onuID, "uniID": uniID, "inPort": inPort, "ethType": ethType}) |
| 274 | |
Humera Kouser | 94d7a84 | 2019-08-25 19:04:32 -0400 | [diff] [blame] | 275 | return uniPortNo, ponIntf, onuID, uniID, inPort, ethType, nil |
Manjunath Vanarajulu | 28c3e82 | 2019-05-16 11:14:28 -0400 | [diff] [blame] | 276 | } |