blob: 166d6fd0b94b4f876e09eb477b2cf712afe7da45 [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
tom9c94c5b2014-09-17 13:14:42 -070019package org.onlab.onos.openflow.controller;
tom7ef8ff92014-09-17 13:08:06 -070020
21import org.projectfloodlight.openflow.protocol.OFMessage;
22
23/**
24 * Test adapter for the OpenFlow controller interface.
25 */
26public class OpenflowControllerAdapter implements OpenFlowController {
27 @Override
28 public Iterable<OpenFlowSwitch> getSwitches() {
29 return null;
30 }
31
32 @Override
33 public Iterable<OpenFlowSwitch> getMasterSwitches() {
34 return null;
35 }
36
37 @Override
38 public Iterable<OpenFlowSwitch> getEqualSwitches() {
39 return null;
40 }
41
42 @Override
43 public OpenFlowSwitch getSwitch(Dpid dpid) {
44 return null;
45 }
46
47 @Override
48 public OpenFlowSwitch getMasterSwitch(Dpid dpid) {
49 return null;
50 }
51
52 @Override
53 public OpenFlowSwitch getEqualSwitch(Dpid dpid) {
54 return null;
55 }
56
57 @Override
58 public void addListener(OpenFlowSwitchListener listener) {
59 }
60
61 @Override
62 public void removeListener(OpenFlowSwitchListener listener) {
63 }
64
65 @Override
66 public void addPacketListener(int priority, PacketListener listener) {
67 }
68
69 @Override
70 public void removePacketListener(PacketListener listener) {
71 }
72
73 @Override
74 public void write(Dpid dpid, OFMessage msg) {
75 }
76
77 @Override
78 public void processPacket(Dpid dpid, OFMessage msg) {
79 }
80
81 @Override
82 public void setRole(Dpid dpid, RoleState role) {
83 }
alshabibeec3a062014-09-17 18:01:26 -070084
85 @Override
86 public void addEventListener(OpenFlowEventListener listener) {
87 // TODO Auto-generated method stub
88
89 }
90
91 @Override
92 public void removeEventListener(OpenFlowEventListener listener) {
93 // TODO Auto-generated method stub
94
95 }
tom7ef8ff92014-09-17 13:08:06 -070096}