Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame^] | 1 | /* |
| 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 | */ |
tom | 9c94c5b | 2014-09-17 13:14:42 -0700 | [diff] [blame] | 19 | package org.onlab.onos.openflow.controller; |
tom | 7ef8ff9 | 2014-09-17 13:08:06 -0700 | [diff] [blame] | 20 | |
| 21 | import org.projectfloodlight.openflow.protocol.OFMessage; |
| 22 | |
| 23 | /** |
| 24 | * Test adapter for the OpenFlow controller interface. |
| 25 | */ |
| 26 | public 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 | } |
alshabib | eec3a06 | 2014-09-17 18:01:26 -0700 | [diff] [blame] | 84 | |
| 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 | } |
tom | 7ef8ff9 | 2014-09-17 13:08:06 -0700 | [diff] [blame] | 96 | } |