blob: c806fcc76d953478ff19bd51938ef43b8a5effdb [file] [log] [blame]
Carmelo Cascone4c289b72019-01-22 15:30:45 -08001/*
2 * Copyright 2019-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.p4runtime.ctl;
18
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.pi.model.PiPipeconf;
21import org.onosproject.net.pi.model.PiPipeconfId;
Carmelo Cascone75a9a892019-04-22 12:12:23 -070022import org.onosproject.net.pi.service.PiPipeconfListener;
Carmelo Cascone4c289b72019-01-22 15:30:45 -080023import org.onosproject.net.pi.service.PiPipeconfService;
24
25import java.util.Optional;
26
27public class MockPipeconfService implements PiPipeconfService {
28 @Override
29 public void register(PiPipeconf pipeconf) throws IllegalStateException {
30
31 }
32
33 @Override
Carmelo Cascone75a9a892019-04-22 12:12:23 -070034 public void unregister(PiPipeconfId pipeconfId) throws IllegalStateException {
Carmelo Cascone4c289b72019-01-22 15:30:45 -080035
36 }
37
38 @Override
39 public Iterable<PiPipeconf> getPipeconfs() {
40 return null;
41 }
42
43 @Override
44 public Optional<PiPipeconf> getPipeconf(PiPipeconfId id) {
45 return Optional.empty();
46 }
47
48 @Override
49 public Optional<PiPipeconf> getPipeconf(DeviceId deviceId) {
50 return Optional.empty();
51 }
52
53 @Override
54 public void bindToDevice(PiPipeconfId pipeconfId, DeviceId deviceId) {
55
56 }
57
58 @Override
59 public String getMergedDriver(DeviceId deviceId, PiPipeconfId pipeconfId) {
60 return null;
61 }
62
63 @Override
64 public Optional<PiPipeconfId> ofDevice(DeviceId deviceId) {
65 return Optional.empty();
66 }
Carmelo Cascone75a9a892019-04-22 12:12:23 -070067
68 @Override
69 public void addListener(PiPipeconfListener listener) {
70
71 }
72
73 @Override
74 public void removeListener(PiPipeconfListener listener) {
75
76 }
Carmelo Cascone4c289b72019-01-22 15:30:45 -080077}