blob: 2dca42ddb5a6efc737c09e380d33d9a49fe2f70d [file] [log] [blame]
Alex Yashchuk4caa8e82017-12-08 17:40:05 +02001/*
2 * Copyright 2017 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 */
16
17package org.onosproject.driver.pipeline;
18
19import org.onosproject.net.behaviour.PipelinerContext;
20import org.onosproject.net.flow.FlowRule;
21import org.onosproject.net.flowobjective.ForwardingObjective;
22import org.onosproject.driver.pipeline.ofdpa.Ofdpa3Pipeline;
23import java.util.Collection;
24
pier9469f3e2019-04-17 17:05:08 +020025import static org.onosproject.driver.pipeline.ofdpa.OfdpaPipelineUtility.ACL_TABLE;
26
Alex Yashchuk4caa8e82017-12-08 17:40:05 +020027public class XpliantPipeline extends Ofdpa3Pipeline {
28
29 @Override
30 protected void initDriverId() {
31 driverId = coreService.registerApplication(
32 "org.onosproject.driver.XpliantPipeline");
33 }
34
35 @Override
36 protected void initGroupHander(PipelinerContext context) {
37 groupHandler = new XpliantGroupHandler();
38 groupHandler.init(deviceId, context);
39 }
40
41 @Override
42 protected Collection<FlowRule> processEthTypeSpecific(ForwardingObjective fwd) {
43 return processEthTypeSpecificInternal(fwd, true, ACL_TABLE);
44 }
45
46 @Override
47 public boolean requireMplsPop() {
48 return false;
49 }
50
51 @Override
52 public boolean requireMplsBosMatch() {
53 return false;
54 }
55
56 @Override
57 public boolean requireMplsTtlModification() {
58 return false;
59 }
Harshada Chaundkarcb787512019-08-05 15:33:30 +000060
61 @Override
62 protected boolean requireEthType() {
63 return false;
64 }
Alex Yashchuk4caa8e82017-12-08 17:40:05 +020065}