blob: 42e50cdb693e9b41fb5fca5f731ae5abda3563cb [file] [log] [blame]
Charles Chan40132b32017-01-22 00:19:37 -08001/*
2 * Copyright 2017-present Open Networking Laboratory
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;
20
21/**
22 * Driver for software switch emulation of the OFDPA pipeline.
23 * The software switch is the OVS OF 1.3 switch. Unfortunately the OVS switch
24 * does not handle vlan tags and mpls labels simultaneously, which requires us
25 * to do some workarounds in the driver. This driver is meant for the use of
26 * the cpqd switch when MPLS is not a requirement from the ofdpa pipeline. As a
27 * result this driver correctly handles both incoming untagged and vlan-tagged
28 * packets.
29 *
30 */
31public class OvsOfdpa2VlanPipeline extends CpqdOfdpa2Pipeline {
32 @Override
33 protected void initDriverId() {
34 driverId = coreService.registerApplication(
35 "org.onosproject.driver.OvsOfdpa2VlanPipeline");
36 }
37
38 @Override
39 protected void initGroupHander(PipelinerContext context) {
40 groupHandler = new OvsOfdpa2GroupHandler();
41 groupHandler.init(deviceId, context);
42 }
43
44 @Override
45 protected boolean supportCopyTtl() {
46 return false;
47 }
48}