blob: 3aa88651ee662cca33d693a7b9c809e3dad00023 [file] [log] [blame]
Charles Chan40132b32017-01-22 00:19:37 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Charles Chan40132b32017-01-22 00:19:37 -08003 *
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
Yi Tsengef19de12017-04-24 11:33:05 -070017package org.onosproject.driver.pipeline.ofdpa;
Charles Chan40132b32017-01-22 00:19:37 -080018
19import org.onosproject.net.behaviour.PipelinerContext;
Charles Chan0f43e472017-02-14 14:00:16 -080020
Charles Chan40132b32017-01-22 00:19:37 -080021/**
22 * Driver for software switch emulation of the OFDPA pipeline.
Saurav Das1547b3f2017-05-05 17:01:08 -070023 * The software switch is the OVS OF 1.3 switch (version 2.5 or later).
Charles Chan40132b32017-01-22 00:19:37 -080024 */
25public class OvsOfdpa2Pipeline extends CpqdOfdpa2Pipeline {
Charles Chan0f43e472017-02-14 14:00:16 -080026
Charles Chan40132b32017-01-22 00:19:37 -080027 @Override
28 protected void initDriverId() {
29 driverId = coreService.registerApplication(
30 "org.onosproject.driver.OvsOfdpa2Pipeline");
31 }
32
33 @Override
34 protected void initGroupHander(PipelinerContext context) {
35 groupHandler = new OvsOfdpa2GroupHandler();
36 groupHandler.init(deviceId, context);
37 }
38
39 @Override
40 protected boolean supportCopyTtl() {
41 return false;
42 }
Charles Chan0f43e472017-02-14 14:00:16 -080043
44 @Override
45 protected boolean supportTaggedMpls() {
46 return true;
47 }
48
49 @Override
50 protected boolean supportPuntGroup() {
51 return true;
52 }
Andrea Campanellad980c6d2018-04-30 11:48:55 +020053
54 @Override
55 protected boolean supportsUnicastBlackHole() {
56 return true;
57 }
Charles Chan40132b32017-01-22 00:19:37 -080058}