blob: 8eebf5fe0a854036a4a95724321d2c1ecb2e85fb [file] [log] [blame]
Carmelo Cascone0761cd32018-08-29 19:22:50 -07001/*
2 * Copyright 2018-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 */
16
17package org.onosproject.net.pi;
18
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.pi.model.PiPipeconf;
21import org.onosproject.net.pi.model.PiPipeconfId;
22import org.onosproject.net.pi.service.PiPipeconfService;
23
24import java.util.Collections;
25import java.util.Optional;
26
27/**
28 * Test adapter of PiPipeconfService.
29 */
30public class PiPipeconfServiceAdapter implements PiPipeconfService {
31 @Override
32 public void register(PiPipeconf pipeconf) throws IllegalStateException {
33
34 }
35
36 @Override
37 public void remove(PiPipeconfId pipeconfId) throws IllegalStateException {
38
39 }
40
41 @Override
42 public Iterable<PiPipeconf> getPipeconfs() {
43 return Collections.emptyList();
44 }
45
46 @Override
47 public Optional<PiPipeconf> getPipeconf(PiPipeconfId id) {
48 return Optional.empty();
49 }
50
51 @Override
52 public void bindToDevice(PiPipeconfId pipeconfId, DeviceId deviceId) {
53
54 }
55
56 @Override
57 public String getMergedDriver(DeviceId deviceId, PiPipeconfId pipeconfId) {
58 return null;
59 }
60
61 @Override
62 public Optional<PiPipeconfId> ofDevice(DeviceId deviceId) {
63 return Optional.empty();
64 }
65}