Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 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 | |
Yi Tseng | ef19de1 | 2017-04-24 11:33:05 -0700 | [diff] [blame] | 17 | package org.onosproject.driver.pipeline.ofdpa; |
Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 18 | |
| 19 | import org.onosproject.net.behaviour.PipelinerContext; |
Charles Chan | 0f43e47 | 2017-02-14 14:00:16 -0800 | [diff] [blame] | 20 | |
Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 21 | /** |
| 22 | * Driver for software switch emulation of the OFDPA pipeline. |
Saurav Das | 1547b3f | 2017-05-05 17:01:08 -0700 | [diff] [blame] | 23 | * The software switch is the OVS OF 1.3 switch (version 2.5 or later). |
Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 24 | */ |
| 25 | public class OvsOfdpa2Pipeline extends CpqdOfdpa2Pipeline { |
Charles Chan | 0f43e47 | 2017-02-14 14:00:16 -0800 | [diff] [blame] | 26 | |
Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 27 | @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 Chan | 0f43e47 | 2017-02-14 14:00:16 -0800 | [diff] [blame] | 43 | |
| 44 | @Override |
| 45 | protected boolean supportTaggedMpls() { |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | @Override |
| 50 | protected boolean supportPuntGroup() { |
| 51 | return true; |
| 52 | } |
Andrea Campanella | 84ac4df | 2018-04-30 11:48:55 +0200 | [diff] [blame] | 53 | |
| 54 | @Override |
| 55 | protected boolean supportsUnicastBlackHole() { |
| 56 | return true; |
| 57 | } |
Charles Chan | 40132b3 | 2017-01-22 00:19:37 -0800 | [diff] [blame] | 58 | } |