blob: 4a511b60198cc803d704c5d41b026f382fe2dbbc [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;
21import org.projectfloodlight.openflow.protocol.OFPortDesc;
22
23import java.util.List;
24
25/**
26 * Test adapter for the OpenFlow switch interface.
27 */
28public class OpenFlowSwitchAdapter implements OpenFlowSwitch {
29 @Override
30 public void sendMsg(OFMessage msg) {
31
32 }
33
34 @Override
35 public void sendMsg(List<OFMessage> msgs) {
36
37 }
38
39 @Override
40 public void handleMessage(OFMessage fromSwitch) {
41
42 }
43
44 @Override
45 public void setRole(RoleState role) {
46
47 }
48
49 @Override
50 public RoleState getRole() {
51 return null;
52 }
53
54 @Override
55 public List<OFPortDesc> getPorts() {
56 return null;
57 }
58
59 @Override
60 public OFFactory factory() {
61 return null;
62 }
63
64 @Override
65 public String getStringId() {
66 return null;
67 }
68
69 @Override
70 public long getId() {
71 return 0;
72 }
73
74 @Override
75 public String manufacturerDescription() {
76 return null;
77 }
78
79 @Override
80 public String datapathDescription() {
81 return null;
82 }
83
84 @Override
85 public String hardwareDescription() {
86 return null;
87 }
88
89 @Override
90 public String softwareDescription() {
91 return null;
92 }
93
94 @Override
95 public String serialNumber() {
96 return null;
97 }
98
99 @Override
100 public boolean isConnected() {
101 return false;
102 }
103
104 @Override
105 public void disconnectSwitch() {
106
107 }
108
109 @Override
110 public void returnRoleReply(RoleState requested, RoleState response) {
111
112 }
113
114 @Override
115 public Device.Type deviceType() {
116 return null;
117 }
118
119 @Override
120 public String channelId() {
121 return null;
122 }
123}