blob: 5a41149d6375310a6eed3aa15a160921ed7570b8 [file] [log] [blame]
pier6a2052b2019-06-28 22:17:31 +02001/*
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.segmentrouting;
18
19import org.onosproject.core.ApplicationId;
20import org.onosproject.net.ConnectPoint;
21import org.onosproject.net.intf.Interface;
22import org.onosproject.net.neighbour.NeighbourHandlerRegistration;
23import org.onosproject.net.neighbour.NeighbourMessageHandler;
24import org.onosproject.net.neighbour.NeighbourResolutionService;
25
26import java.util.Collection;
27import java.util.Map;
28
29/**
30 * Mock Neighbour Resolution Service.
31 */
32public class MockNeighbourResolutionService implements NeighbourResolutionService {
33 @Override
34 public void registerNeighbourHandler(ConnectPoint connectPoint,
35 NeighbourMessageHandler handler, ApplicationId appId) {
36
37 }
38
39 @Override
40 public void registerNeighbourHandler(Interface intf,
41 NeighbourMessageHandler handler, ApplicationId appId) {
42
43 }
44
45 @Override
46 public void unregisterNeighbourHandler(ConnectPoint connectPoint,
47 NeighbourMessageHandler handler, ApplicationId appId) {
48
49 }
50
51 @Override
52 public void unregisterNeighbourHandler(Interface intf,
53 NeighbourMessageHandler handler, ApplicationId appId) {
54
55 }
56
57 @Override
58 public void unregisterNeighbourHandlers(ApplicationId appId) {
59
60 }
61
62 @Override
63 public Map<ConnectPoint, Collection<NeighbourHandlerRegistration>> getHandlerRegistrations() {
64 return null;
65 }
66}