blob: c3b228d3148b4ee061c5b79de8e9f09b2f38631b [file] [log] [blame]
sangyun-han07a572f2016-07-29 21:14:27 +09001/*
Brian O'Connor0a4e6742016-09-15 23:03:10 -07002 * Copyright 2016-present Open Networking Laboratory
sangyun-han07a572f2016-07-29 21:14:27 +09003 *
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 */
16package org.onosproject.openflow.controller;
17
18import org.onosproject.net.Device;
19import org.projectfloodlight.openflow.protocol.OFFactory;
20import org.projectfloodlight.openflow.protocol.OFMessage;
Jordi Ortizaa8de492016-12-01 00:21:36 +010021import org.projectfloodlight.openflow.protocol.OFMeterFeatures;
sangyun-han07a572f2016-07-29 21:14:27 +090022import org.projectfloodlight.openflow.protocol.OFPortDesc;
23
24import java.util.List;
25
26/**
27 * Test adapter for the OpenFlow switch interface.
28 */
29public class OpenFlowSwitchAdapter implements OpenFlowSwitch {
30 @Override
31 public void sendMsg(OFMessage msg) {
32
33 }
34
35 @Override
36 public void sendMsg(List<OFMessage> msgs) {
37
38 }
39
40 @Override
41 public void handleMessage(OFMessage fromSwitch) {
42
43 }
44
45 @Override
46 public void setRole(RoleState role) {
47
48 }
49
50 @Override
51 public RoleState getRole() {
52 return null;
53 }
54
55 @Override
56 public List<OFPortDesc> getPorts() {
57 return null;
58 }
59
60 @Override
Jordi Ortizaa8de492016-12-01 00:21:36 +010061 public OFMeterFeatures getMeterFeatures() {
62 return null;
63 }
64
65 @Override
sangyun-han07a572f2016-07-29 21:14:27 +090066 public OFFactory factory() {
67 return null;
68 }
69
70 @Override
71 public String getStringId() {
72 return null;
73 }
74
75 @Override
76 public long getId() {
77 return 0;
78 }
79
80 @Override
81 public String manufacturerDescription() {
82 return null;
83 }
84
85 @Override
86 public String datapathDescription() {
87 return null;
88 }
89
90 @Override
91 public String hardwareDescription() {
92 return null;
93 }
94
95 @Override
96 public String softwareDescription() {
97 return null;
98 }
99
100 @Override
101 public String serialNumber() {
102 return null;
103 }
104
105 @Override
106 public boolean isConnected() {
107 return false;
108 }
109
110 @Override
111 public void disconnectSwitch() {
112
113 }
114
115 @Override
116 public void returnRoleReply(RoleState requested, RoleState response) {
117
118 }
119
120 @Override
121 public Device.Type deviceType() {
122 return null;
123 }
124
125 @Override
126 public String channelId() {
127 return null;
128 }
129}