Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-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 | */ |
Daniele Moro | 8ea9e10 | 2020-03-24 18:56:52 +0100 | [diff] [blame] | 16 | package org.opencord.cordmcast.impl; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 17 | |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 18 | import java.util.List; |
| 19 | import java.util.Map; |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 20 | import java.util.HashMap; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 21 | import java.util.Set; |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 22 | import java.util.HashSet; |
| 23 | import java.util.Arrays; |
| 24 | import java.util.ArrayList; |
| 25 | import java.util.Iterator; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 26 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 27 | import org.onlab.packet.Ip4Address; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 28 | import org.onlab.packet.IpAddress; |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 29 | import org.onlab.packet.VlanId; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 30 | import org.onosproject.TestApplicationId; |
| 31 | import org.onosproject.core.ApplicationId; |
| 32 | import org.onosproject.core.CoreServiceAdapter; |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 33 | import org.onosproject.event.DefaultEventSinkRegistry; |
| 34 | import org.onosproject.event.Event; |
| 35 | import org.onosproject.event.EventDeliveryService; |
| 36 | import org.onosproject.event.EventSink; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 37 | import org.onosproject.mastership.MastershipServiceAdapter; |
| 38 | import org.onosproject.mcast.api.McastRoute; |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 39 | import org.onosproject.net.AnnotationKeys; |
| 40 | import org.onosproject.net.Annotations; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 41 | import org.onosproject.net.ConnectPoint; |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 42 | import org.onosproject.net.DefaultAnnotations; |
| 43 | import org.onosproject.net.DefaultDevice; |
| 44 | import org.onosproject.net.Device; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 45 | import org.onosproject.net.DeviceId; |
| 46 | import org.onosproject.net.HostId; |
| 47 | import org.onosproject.net.PortNumber; |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 48 | import org.onosproject.net.SparseAnnotations; |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 49 | import org.onosproject.net.config.Config; |
| 50 | import org.onosproject.net.config.NetworkConfigRegistryAdapter; |
| 51 | import org.onosproject.net.config.basics.McastConfig; |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 52 | import org.onosproject.net.device.DeviceServiceAdapter; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 53 | import org.onosproject.net.flow.TrafficSelector; |
| 54 | import org.onosproject.net.flow.TrafficTreatment; |
| 55 | import org.onosproject.net.flow.criteria.Criterion; |
| 56 | import org.onosproject.net.flow.criteria.IPCriterion; |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 57 | import org.onosproject.net.flow.criteria.VlanIdCriterion; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 58 | import org.onosproject.net.flow.instructions.Instruction; |
| 59 | import org.onosproject.net.flow.instructions.Instructions.OutputInstruction; |
| 60 | import org.onosproject.net.flowobjective.FlowObjectiveServiceAdapter; |
| 61 | import org.onosproject.net.flowobjective.ForwardingObjective; |
| 62 | import org.onosproject.net.flowobjective.NextObjective; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 63 | |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 64 | import com.google.common.collect.ImmutableMap; |
Daniele Moro | 8ea9e10 | 2020-03-24 18:56:52 +0100 | [diff] [blame] | 65 | import org.opencord.cordmcast.CordMcastStatisticsEvent; |
| 66 | import org.opencord.cordmcast.CordMcastStatisticsEventListener; |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 67 | import org.opencord.sadis.BandwidthProfileInformation; |
| 68 | import org.opencord.sadis.BaseInformationService; |
| 69 | import org.opencord.sadis.SadisService; |
| 70 | import org.opencord.sadis.SubscriberAndDeviceInformation; |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 71 | |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 72 | import static com.google.common.base.Preconditions.checkState; |
| 73 | |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 74 | public class McastTestBase { |
| 75 | |
| 76 | // Map to store the forwardingObjective in flowObjectiveService.forward() |
| 77 | Map<DeviceId, ForwardingObjective> forwardMap = new HashMap<>(); |
| 78 | // Map to store the nextObjective in flowObjectiveService.next() |
| 79 | Map<DeviceId, NextObjective> nextMap = new HashMap<>(); |
| 80 | // Device configuration |
| 81 | protected static final DeviceId DEVICE_ID_OF_A = DeviceId.deviceId("of:00000a0a0a0a0a00"); |
| 82 | // Port number |
| 83 | protected static final PortNumber PORT_A = PortNumber.portNumber(1048576); |
| 84 | protected static final PortNumber PORT_B = PortNumber.portNumber(16); |
| 85 | protected static final PortNumber PORT_C = PortNumber.portNumber(24); |
| 86 | |
| 87 | // Connect Point for creating source and sink |
| 88 | protected static final ConnectPoint CONNECT_POINT_A = new ConnectPoint(DEVICE_ID_OF_A, PORT_A); |
| 89 | protected static final ConnectPoint CONNECT_POINT_B = new ConnectPoint(DEVICE_ID_OF_A, PORT_B); |
| 90 | protected static final ConnectPoint CONNECT_POINT_C = new ConnectPoint(DEVICE_ID_OF_A, PORT_C); |
| 91 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 92 | // serial number of the device A |
| 93 | protected static final String SERIAL_NUMBER_OF_DEVICE_A = "serialNumberOfDevA"; |
| 94 | // Management ip address of the device A |
| 95 | protected static final Ip4Address MANAGEMENT_IP_OF_A = Ip4Address.valueOf("10.177.125.4"); |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 96 | //Host id configuration |
| 97 | protected static final HostId HOST_ID_NONE = HostId.NONE; |
| 98 | // Source connect point |
| 99 | protected static final Set<ConnectPoint> SOURCES_CP = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_A)); |
| 100 | Map<HostId, Set<ConnectPoint>> sources = ImmutableMap.of(HOST_ID_NONE, SOURCES_CP); |
| 101 | |
| 102 | protected static final IpAddress MULTICAST_IP = IpAddress.valueOf("224.0.0.22"); |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 103 | protected static final IpAddress SOURCE_IP = IpAddress.valueOf("192.168.1.1"); |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 104 | // Creating dummy route with IGMP type. |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 105 | McastRoute route1 = new McastRoute(SOURCE_IP, MULTICAST_IP, McastRoute.Type.IGMP); |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 106 | |
| 107 | // Creating empty sink used in prevRoute |
| 108 | Set<ConnectPoint> sinksCp = new HashSet<ConnectPoint>(Arrays.asList()); |
| 109 | Map<HostId, Set<ConnectPoint>> sinks = ImmutableMap.of(HOST_ID_NONE, sinksCp); |
| 110 | |
| 111 | // Creating empty source |
| 112 | Set<ConnectPoint> sourceCp = new HashSet<ConnectPoint>(Arrays.asList()); |
| 113 | Map<HostId, Set<ConnectPoint>> emptySource = ImmutableMap.of(HOST_ID_NONE, sourceCp); |
| 114 | |
| 115 | // Flag to check unknown olt device |
| 116 | boolean knownOltFlag = false; |
| 117 | |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 118 | // For the tests reduce events period to 1s |
| 119 | protected static final int EVENT_GENERATION_PERIOD = 1; |
| 120 | |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 121 | class MockCoreService extends CoreServiceAdapter { |
| 122 | @Override |
| 123 | public ApplicationId registerApplication(String name) { |
| 124 | ApplicationId testApplicationId = TestApplicationId.create("org.opencord.cordmcast"); |
| 125 | return testApplicationId; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | class MockFlowObjectiveService extends FlowObjectiveServiceAdapter { |
| 130 | @Override |
| 131 | public void forward(DeviceId deviceId, ForwardingObjective forwardingObjective) { |
| 132 | synchronized (forwardMap) { |
| 133 | forwardMap.put(deviceId, forwardingObjective); |
Andrea Campanella | 0365235 | 2020-05-06 16:12:00 +0200 | [diff] [blame^] | 134 | forwardingObjective.context().ifPresent(context -> { |
| 135 | context.onSuccess(forwardingObjective); |
| 136 | }); |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 137 | forwardMap.notify(); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | @Override |
| 142 | public void next(DeviceId deviceId, NextObjective nextObjective) { |
| 143 | nextMap.put(deviceId, nextObjective); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | class TestMastershipService extends MastershipServiceAdapter { |
| 148 | @Override |
| 149 | public boolean isLocalMaster(DeviceId deviceId) { |
| 150 | return true; |
| 151 | } |
| 152 | } |
| 153 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 154 | protected class MockSadisService implements SadisService { |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 155 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 156 | @Override |
| 157 | public BaseInformationService<SubscriberAndDeviceInformation> getSubscriberInfoService() { |
| 158 | return new MockSubService(); |
| 159 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 160 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 161 | @Override |
| 162 | public BaseInformationService<BandwidthProfileInformation> getBandwidthProfileService() { |
| 163 | return null; |
| 164 | } |
| 165 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 166 | |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 167 | /** |
| 168 | * Mocks the McastConfig class to return vlan id value. |
| 169 | */ |
| 170 | static class MockMcastConfig extends McastConfig { |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 171 | private VlanId egressVlan; |
| 172 | private VlanId egressInnerVlan; |
| 173 | |
| 174 | public MockMcastConfig(VlanId egressVlan, VlanId egressInnerVlan) { |
| 175 | this.egressVlan = egressVlan; |
| 176 | this.egressInnerVlan = egressInnerVlan; |
| 177 | } |
| 178 | |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 179 | @Override |
| 180 | public VlanId egressVlan() { |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 181 | return egressVlan; |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 182 | } |
Esin Karaman | bb35a3b | 2020-03-18 13:53:24 +0000 | [diff] [blame] | 183 | |
| 184 | @Override |
| 185 | public VlanId egressInnerVlan() { |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 186 | return egressInnerVlan; |
Esin Karaman | bb35a3b | 2020-03-18 13:53:24 +0000 | [diff] [blame] | 187 | } |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Mocks the network config registry. |
| 192 | */ |
| 193 | @SuppressWarnings("unchecked") |
| 194 | static final class TestNetworkConfigRegistry |
| 195 | extends NetworkConfigRegistryAdapter { |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 196 | |
| 197 | private VlanId egressVlan = VlanId.vlanId("4000"); |
| 198 | private VlanId egressInnerVlan = VlanId.NONE; |
| 199 | |
| 200 | public void setEgressVlan(VlanId egressVlan) { |
| 201 | this.egressVlan = egressVlan; |
| 202 | } |
| 203 | |
| 204 | public void setEgressInnerVlan(VlanId egressInnerVlan) { |
| 205 | this.egressInnerVlan = egressInnerVlan; |
| 206 | } |
| 207 | |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 208 | @Override |
| 209 | public <S, C extends Config<S>> C getConfig(S subject, Class<C> configClass) { |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 210 | McastConfig mcastConfig = new MockMcastConfig(egressVlan, egressInnerVlan); |
Arjun E K | abf9e6e | 2020-03-02 10:15:21 +0000 | [diff] [blame] | 211 | return (C) mcastConfig; |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | public static class TestEventDispatcher extends DefaultEventSinkRegistry |
| 216 | implements EventDeliveryService { |
| 217 | |
| 218 | @Override |
| 219 | @SuppressWarnings("unchecked") |
| 220 | public synchronized void post(Event event) { |
| 221 | EventSink sink = getSink(event.getClass()); |
| 222 | checkState(sink != null, "No sink for event %s", event); |
| 223 | sink.process(event); |
| 224 | } |
| 225 | |
| 226 | @Override |
| 227 | public void setDispatchTimeLimit(long millis) { |
| 228 | |
| 229 | } |
| 230 | |
| 231 | @Override |
| 232 | public long getDispatchTimeLimit() { |
| 233 | return 0; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | public static class MockCordMcastStatisticsEventListener implements CordMcastStatisticsEventListener { |
| 238 | protected List<CordMcastStatisticsEvent> mcastEventList = new ArrayList<CordMcastStatisticsEvent>(); |
| 239 | |
| 240 | @Override |
| 241 | public void event(CordMcastStatisticsEvent event) { |
| 242 | mcastEventList.add(event); |
| 243 | } |
| 244 | } |
| 245 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 246 | private class MockSubService implements BaseInformationService<SubscriberAndDeviceInformation> { |
| 247 | MockSubscriberAndDeviceInformation deviceA = |
| 248 | new MockSubscriberAndDeviceInformation(SERIAL_NUMBER_OF_DEVICE_A, MANAGEMENT_IP_OF_A); |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 249 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 250 | @Override |
| 251 | public SubscriberAndDeviceInformation get(String id) { |
| 252 | return SERIAL_NUMBER_OF_DEVICE_A.equals(id) ? deviceA : null; |
| 253 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 254 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 255 | @Override |
| 256 | public void invalidateAll() { |
| 257 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 258 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 259 | @Override |
| 260 | public void invalidateId(String id) { |
| 261 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 262 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 263 | @Override |
| 264 | public SubscriberAndDeviceInformation getfromCache(String id) { |
| 265 | return null; |
| 266 | } |
| 267 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 268 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 269 | private class MockSubscriberAndDeviceInformation extends SubscriberAndDeviceInformation { |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 270 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 271 | MockSubscriberAndDeviceInformation(String id, Ip4Address ipAddress) { |
| 272 | this.setId(id); |
| 273 | this.setIPAddress(ipAddress); |
| 274 | this.setUplinkPort((int) PORT_A.toLong()); |
| 275 | } |
| 276 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 277 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 278 | class MockDeviceService extends DeviceServiceAdapter { |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 279 | |
Esin Karaman | 996177c | 2020-03-05 13:21:09 +0000 | [diff] [blame] | 280 | @Override |
| 281 | public Device getDevice(DeviceId deviceId) { |
| 282 | if (DEVICE_ID_OF_A.equals(deviceId)) { |
| 283 | DefaultAnnotations.Builder annotationsBuilder = DefaultAnnotations.builder() |
| 284 | .set(AnnotationKeys.MANAGEMENT_ADDRESS, MANAGEMENT_IP_OF_A.toString()); |
| 285 | SparseAnnotations annotations = annotationsBuilder.build(); |
| 286 | Annotations[] da = {annotations}; |
| 287 | |
| 288 | Device deviceA = new DefaultDevice(null, DEVICE_ID_OF_A, Device.Type.OTHER, "", "", |
| 289 | "", SERIAL_NUMBER_OF_DEVICE_A, null, da); |
| 290 | return deviceA; |
| 291 | } else { |
| 292 | knownOltFlag = true; |
| 293 | } |
| 294 | return null; |
| 295 | } |
| 296 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 297 | |
| 298 | public OutputInstruction outputPort(TrafficTreatment trafficTreatment) { |
| 299 | List<Instruction> listOfInstructions = trafficTreatment.allInstructions(); |
| 300 | OutputInstruction output = null; |
| 301 | for (Instruction intruction : listOfInstructions) { |
| 302 | output = (OutputInstruction) intruction; |
| 303 | } |
| 304 | return output; |
| 305 | } |
| 306 | |
| 307 | public IPCriterion ipAddress(TrafficSelector trafficSelector) { |
| 308 | Set<Criterion> criterionSet = trafficSelector.criteria(); |
| 309 | Iterator<Criterion> it = criterionSet.iterator(); |
| 310 | IPCriterion ipCriterion = null; |
| 311 | while (it.hasNext()) { |
| 312 | Criterion criteria = it.next(); |
| 313 | if (Criterion.Type.IPV4_DST == criteria.type()) { |
| 314 | ipCriterion = (IPCriterion) criteria; |
| 315 | } |
| 316 | } |
| 317 | return (IPCriterion) ipCriterion; |
| 318 | } |
| 319 | |
Esin Karaman | e489001 | 2020-04-19 11:58:54 +0000 | [diff] [blame] | 320 | public VlanIdCriterion vlanId(TrafficSelector trafficSelector, Criterion.Type type) { |
| 321 | Set<Criterion> criterionSet = trafficSelector.criteria(); |
| 322 | Iterator<Criterion> it = criterionSet.iterator(); |
| 323 | VlanIdCriterion criterion = null; |
| 324 | while (it.hasNext()) { |
| 325 | Criterion criteria = it.next(); |
| 326 | if (type == criteria.type()) { |
| 327 | criterion = (VlanIdCriterion) criteria; |
| 328 | } |
| 329 | } |
| 330 | return criterion; |
| 331 | } |
Sonal Kasliwal | a0bbe6c | 2020-01-06 10:46:30 +0000 | [diff] [blame] | 332 | } |