sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 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 | |
| 17 | package org.onosproject.provider.of.group.impl; |
| 18 | |
jiangrui | a6b4609 | 2015-11-11 16:28:51 +0800 | [diff] [blame] | 19 | import static org.slf4j.LoggerFactory.getLogger; |
| 20 | |
| 21 | import java.util.Collection; |
| 22 | import java.util.Map; |
| 23 | import java.util.Optional; |
| 24 | import java.util.concurrent.atomic.AtomicLong; |
Srikanth Vavilapalli | 10e75cd | 2015-04-13 16:21:24 -0700 | [diff] [blame] | 25 | |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 26 | import org.apache.felix.scr.annotations.Activate; |
| 27 | import org.apache.felix.scr.annotations.Component; |
| 28 | import org.apache.felix.scr.annotations.Deactivate; |
| 29 | import org.apache.felix.scr.annotations.Reference; |
| 30 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
| 31 | import org.onosproject.core.DefaultGroupId; |
| 32 | import org.onosproject.core.GroupId; |
| 33 | import org.onosproject.net.DeviceId; |
jiangrui | a6b4609 | 2015-11-11 16:28:51 +0800 | [diff] [blame] | 34 | import org.onosproject.net.driver.DriverService; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 35 | import org.onosproject.net.group.DefaultGroup; |
| 36 | import org.onosproject.net.group.Group; |
| 37 | import org.onosproject.net.group.GroupBuckets; |
| 38 | import org.onosproject.net.group.GroupDescription; |
| 39 | import org.onosproject.net.group.GroupOperation; |
| 40 | import org.onosproject.net.group.GroupOperations; |
| 41 | import org.onosproject.net.group.GroupProvider; |
| 42 | import org.onosproject.net.group.GroupProviderRegistry; |
| 43 | import org.onosproject.net.group.GroupProviderService; |
Srikanth Vavilapalli | 10e75cd | 2015-04-13 16:21:24 -0700 | [diff] [blame] | 44 | import org.onosproject.net.group.StoredGroupBucketEntry; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 45 | import org.onosproject.net.provider.AbstractProvider; |
| 46 | import org.onosproject.net.provider.ProviderId; |
| 47 | import org.onosproject.openflow.controller.Dpid; |
| 48 | import org.onosproject.openflow.controller.OpenFlowController; |
| 49 | import org.onosproject.openflow.controller.OpenFlowEventListener; |
| 50 | import org.onosproject.openflow.controller.OpenFlowSwitch; |
| 51 | import org.onosproject.openflow.controller.OpenFlowSwitchListener; |
| 52 | import org.onosproject.openflow.controller.RoleState; |
Srikanth Vavilapalli | 10e75cd | 2015-04-13 16:21:24 -0700 | [diff] [blame] | 53 | import org.projectfloodlight.openflow.protocol.OFBucketCounter; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 54 | import org.projectfloodlight.openflow.protocol.OFErrorMsg; |
| 55 | import org.projectfloodlight.openflow.protocol.OFErrorType; |
| 56 | import org.projectfloodlight.openflow.protocol.OFGroupDescStatsEntry; |
| 57 | import org.projectfloodlight.openflow.protocol.OFGroupDescStatsReply; |
| 58 | import org.projectfloodlight.openflow.protocol.OFGroupMod; |
| 59 | import org.projectfloodlight.openflow.protocol.OFGroupStatsEntry; |
| 60 | import org.projectfloodlight.openflow.protocol.OFGroupStatsReply; |
| 61 | import org.projectfloodlight.openflow.protocol.OFGroupType; |
| 62 | import org.projectfloodlight.openflow.protocol.OFMessage; |
| 63 | import org.projectfloodlight.openflow.protocol.OFPortStatus; |
| 64 | import org.projectfloodlight.openflow.protocol.OFStatsReply; |
| 65 | import org.projectfloodlight.openflow.protocol.OFStatsType; |
sangho | 01a883c | 2015-02-23 11:01:50 -0800 | [diff] [blame] | 66 | import org.projectfloodlight.openflow.protocol.OFVersion; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 67 | import org.slf4j.Logger; |
| 68 | |
jiangrui | a6b4609 | 2015-11-11 16:28:51 +0800 | [diff] [blame] | 69 | import com.google.common.collect.Maps; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 70 | |
| 71 | /** |
| 72 | * Provider which uses an OpenFlow controller to handle Group. |
| 73 | */ |
| 74 | @Component(immediate = true) |
| 75 | public class OpenFlowGroupProvider extends AbstractProvider implements GroupProvider { |
| 76 | |
| 77 | private final Logger log = getLogger(getClass()); |
| 78 | |
| 79 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) |
| 80 | protected OpenFlowController controller; |
| 81 | |
| 82 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) |
| 83 | protected GroupProviderRegistry providerRegistry; |
| 84 | |
jiangrui | a6b4609 | 2015-11-11 16:28:51 +0800 | [diff] [blame] | 85 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) |
| 86 | protected DriverService driverService; |
| 87 | |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 88 | private GroupProviderService providerService; |
| 89 | |
| 90 | static final int POLL_INTERVAL = 10; |
| 91 | |
| 92 | private final InternalGroupProvider listener = new InternalGroupProvider(); |
| 93 | |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 94 | private static final AtomicLong XID_COUNTER = new AtomicLong(1); |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 95 | private final Map<Dpid, GroupStatsCollector> collectors = Maps.newHashMap(); |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 96 | private final Map<Long, OFStatsReply> groupStats = Maps.newConcurrentMap(); |
sangho | 22a805d | 2015-02-13 09:45:43 -0800 | [diff] [blame] | 97 | private final Map<GroupId, GroupOperation> pendingGroupOperations = |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 98 | Maps.newConcurrentMap(); |
| 99 | |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 100 | /* Map<Group ID, Transaction ID> */ |
sangho | 22a805d | 2015-02-13 09:45:43 -0800 | [diff] [blame] | 101 | private final Map<GroupId, Long> pendingXidMaps = Maps.newConcurrentMap(); |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 102 | |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 103 | /** |
| 104 | * Creates a OpenFlow group provider. |
| 105 | */ |
| 106 | public OpenFlowGroupProvider() { |
| 107 | super(new ProviderId("of", "org.onosproject.provider.group")); |
| 108 | } |
| 109 | |
| 110 | @Activate |
| 111 | public void activate() { |
| 112 | providerService = providerRegistry.register(this); |
| 113 | controller.addListener(listener); |
| 114 | controller.addEventListener(listener); |
| 115 | |
| 116 | for (OpenFlowSwitch sw : controller.getSwitches()) { |
sangho | 01a883c | 2015-02-23 11:01:50 -0800 | [diff] [blame] | 117 | if (isGroupSupported(sw)) { |
| 118 | GroupStatsCollector gsc = new GroupStatsCollector(sw, POLL_INTERVAL); |
| 119 | gsc.start(); |
| 120 | collectors.put(new Dpid(sw.getId()), gsc); |
| 121 | } |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | log.info("Started"); |
| 125 | } |
| 126 | |
| 127 | @Deactivate |
| 128 | public void deactivate() { |
| 129 | providerRegistry.unregister(this); |
| 130 | providerService = null; |
Charles Chan | ecfdfb7 | 2015-11-24 19:05:50 -0800 | [diff] [blame^] | 131 | collectors.values().forEach(GroupStatsCollector::stop); |
| 132 | collectors.clear(); |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 133 | log.info("Stopped"); |
| 134 | } |
| 135 | |
| 136 | @Override |
| 137 | public void performGroupOperation(DeviceId deviceId, GroupOperations groupOps) { |
| 138 | Map<OFGroupMod, OpenFlowSwitch> mods = Maps.newIdentityHashMap(); |
| 139 | final Dpid dpid = Dpid.dpid(deviceId.uri()); |
| 140 | OpenFlowSwitch sw = controller.getSwitch(dpid); |
| 141 | for (GroupOperation groupOperation: groupOps.operations()) { |
| 142 | if (sw == null) { |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 143 | log.error("SW {} is not found", dpid); |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 144 | return; |
| 145 | } |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 146 | final Long groupModXid = XID_COUNTER.getAndIncrement(); |
jiangrui | a6b4609 | 2015-11-11 16:28:51 +0800 | [diff] [blame] | 147 | GroupModBuilder builder = null; |
| 148 | if (driverService == null) { |
| 149 | builder = GroupModBuilder.builder(groupOperation.buckets(), |
| 150 | groupOperation.groupId(), |
| 151 | groupOperation.groupType(), |
| 152 | sw.factory(), |
| 153 | Optional.of(groupModXid)); |
| 154 | } else { |
| 155 | builder = GroupModBuilder.builder(groupOperation.buckets(), |
| 156 | groupOperation.groupId(), |
| 157 | groupOperation.groupType(), |
| 158 | sw.factory(), |
| 159 | Optional.of(groupModXid), |
| 160 | Optional.of(driverService)); |
| 161 | } |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 162 | OFGroupMod groupMod = null; |
| 163 | switch (groupOperation.opType()) { |
| 164 | case ADD: |
| 165 | groupMod = builder.buildGroupAdd(); |
| 166 | break; |
| 167 | case MODIFY: |
| 168 | groupMod = builder.buildGroupMod(); |
| 169 | break; |
| 170 | case DELETE: |
| 171 | groupMod = builder.buildGroupDel(); |
| 172 | break; |
| 173 | default: |
| 174 | log.error("Unsupported Group operation"); |
Satish K | e6d91c5 | 2015-11-21 19:04:20 +0530 | [diff] [blame] | 175 | return; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 176 | } |
| 177 | sw.sendMsg(groupMod); |
sangho | 22a805d | 2015-02-13 09:45:43 -0800 | [diff] [blame] | 178 | GroupId groudId = new DefaultGroupId(groupMod.getGroup().getGroupNumber()); |
| 179 | pendingGroupOperations.put(groudId, groupOperation); |
| 180 | pendingXidMaps.put(groudId, groupModXid); |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 181 | } |
| 182 | } |
| 183 | |
| 184 | private void pushGroupMetrics(Dpid dpid, OFStatsReply statsReply) { |
| 185 | DeviceId deviceId = DeviceId.deviceId(Dpid.uri(dpid)); |
| 186 | |
| 187 | OFGroupStatsReply groupStatsReply = null; |
| 188 | OFGroupDescStatsReply groupDescStatsReply = null; |
| 189 | |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 190 | synchronized (groupStats) { |
| 191 | if (statsReply.getStatsType() == OFStatsType.GROUP) { |
| 192 | OFStatsReply reply = groupStats.get(statsReply.getXid() + 1); |
| 193 | if (reply != null) { |
| 194 | groupStatsReply = (OFGroupStatsReply) statsReply; |
| 195 | groupDescStatsReply = (OFGroupDescStatsReply) reply; |
| 196 | groupStats.remove(statsReply.getXid() + 1); |
| 197 | } else { |
| 198 | groupStats.put(statsReply.getXid(), statsReply); |
| 199 | } |
| 200 | } else if (statsReply.getStatsType() == OFStatsType.GROUP_DESC) { |
| 201 | OFStatsReply reply = groupStats.get(statsReply.getXid() - 1); |
| 202 | if (reply != null) { |
| 203 | groupStatsReply = (OFGroupStatsReply) reply; |
| 204 | groupDescStatsReply = (OFGroupDescStatsReply) statsReply; |
| 205 | groupStats.remove(statsReply.getXid() - 1); |
| 206 | } else { |
| 207 | groupStats.put(statsReply.getXid(), statsReply); |
| 208 | } |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 209 | } |
| 210 | } |
| 211 | |
| 212 | if (groupStatsReply != null && groupDescStatsReply != null) { |
| 213 | Collection<Group> groups = buildGroupMetrics(deviceId, |
| 214 | groupStatsReply, groupDescStatsReply); |
| 215 | providerService.pushGroupMetrics(deviceId, groups); |
| 216 | for (Group group: groups) { |
| 217 | pendingGroupOperations.remove(group.id()); |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 218 | pendingXidMaps.remove(group.id()); |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | private Collection<Group> buildGroupMetrics(DeviceId deviceId, |
| 224 | OFGroupStatsReply groupStatsReply, |
| 225 | OFGroupDescStatsReply groupDescStatsReply) { |
| 226 | |
| 227 | Map<Integer, Group> groups = Maps.newHashMap(); |
| 228 | |
Srikanth Vavilapalli | 10e75cd | 2015-04-13 16:21:24 -0700 | [diff] [blame] | 229 | |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 230 | for (OFGroupDescStatsEntry entry: groupDescStatsReply.getEntries()) { |
| 231 | int id = entry.getGroup().getGroupNumber(); |
| 232 | GroupId groupId = new DefaultGroupId(id); |
| 233 | GroupDescription.Type type = getGroupType(entry.getGroupType()); |
| 234 | GroupBuckets buckets = new GroupBucketEntryBuilder(entry.getBuckets(), |
| 235 | entry.getGroupType()).build(); |
| 236 | DefaultGroup group = new DefaultGroup(groupId, deviceId, type, buckets); |
| 237 | groups.put(id, group); |
| 238 | } |
| 239 | |
| 240 | for (OFGroupStatsEntry entry: groupStatsReply.getEntries()) { |
| 241 | int groupId = entry.getGroup().getGroupNumber(); |
| 242 | DefaultGroup group = (DefaultGroup) groups.get(groupId); |
| 243 | if (group != null) { |
| 244 | group.setBytes(entry.getByteCount().getValue()); |
| 245 | group.setLife(entry.getDurationSec()); |
| 246 | group.setPackets(entry.getPacketCount().getValue()); |
| 247 | group.setReferenceCount(entry.getRefCount()); |
Srikanth Vavilapalli | 10e75cd | 2015-04-13 16:21:24 -0700 | [diff] [blame] | 248 | int bucketIndex = 0; |
| 249 | for (OFBucketCounter bucketStats:entry.getBucketStats()) { |
| 250 | ((StoredGroupBucketEntry) group.buckets().buckets() |
| 251 | .get(bucketIndex)) |
| 252 | .setPackets(bucketStats |
| 253 | .getPacketCount().getValue()); |
| 254 | ((StoredGroupBucketEntry) group.buckets().buckets() |
| 255 | .get(bucketIndex)) |
| 256 | .setBytes(entry.getBucketStats() |
| 257 | .get(bucketIndex) |
| 258 | .getByteCount().getValue()); |
| 259 | bucketIndex++; |
| 260 | } |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 261 | } |
| 262 | } |
| 263 | |
| 264 | return groups.values(); |
| 265 | } |
| 266 | |
| 267 | private GroupDescription.Type getGroupType(OFGroupType type) { |
| 268 | switch (type) { |
| 269 | case ALL: |
Charles Chan | c42e84e | 2015-10-20 16:24:19 -0700 | [diff] [blame] | 270 | return GroupDescription.Type.ALL; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 271 | case INDIRECT: |
| 272 | return GroupDescription.Type.INDIRECT; |
| 273 | case SELECT: |
| 274 | return GroupDescription.Type.SELECT; |
| 275 | case FF: |
| 276 | return GroupDescription.Type.FAILOVER; |
| 277 | default: |
| 278 | log.error("Unsupported OF group type : {}", type); |
| 279 | break; |
| 280 | } |
| 281 | return null; |
| 282 | } |
| 283 | |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 284 | /** |
| 285 | * Returns a transaction ID for entire group operations and increases |
| 286 | * the counter by the number given. |
| 287 | * |
| 288 | * @param increase the amount to increase the counter by |
| 289 | * @return a transaction ID |
| 290 | */ |
| 291 | public static long getXidAndAdd(int increase) { |
| 292 | return XID_COUNTER.getAndAdd(increase); |
| 293 | } |
| 294 | |
sangho | 01a883c | 2015-02-23 11:01:50 -0800 | [diff] [blame] | 295 | private boolean isGroupSupported(OpenFlowSwitch sw) { |
| 296 | if (sw.factory().getVersion() == OFVersion.OF_10 || |
| 297 | sw.factory().getVersion() == OFVersion.OF_11 || |
| 298 | sw.factory().getVersion() == OFVersion.OF_12) { |
| 299 | return false; |
| 300 | } |
| 301 | |
| 302 | return true; |
| 303 | } |
| 304 | |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 305 | private class InternalGroupProvider |
| 306 | implements OpenFlowSwitchListener, OpenFlowEventListener { |
| 307 | |
| 308 | @Override |
| 309 | public void handleMessage(Dpid dpid, OFMessage msg) { |
| 310 | switch (msg.getType()) { |
| 311 | case STATS_REPLY: |
| 312 | pushGroupMetrics(dpid, (OFStatsReply) msg); |
| 313 | break; |
| 314 | case ERROR: |
| 315 | OFErrorMsg errorMsg = (OFErrorMsg) msg; |
| 316 | if (errorMsg.getErrType() == OFErrorType.GROUP_MOD_FAILED) { |
sangho | 22a805d | 2015-02-13 09:45:43 -0800 | [diff] [blame] | 317 | GroupId pendingGroupId = null; |
| 318 | for (Map.Entry<GroupId, Long> entry: pendingXidMaps.entrySet()) { |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 319 | if (entry.getValue() == errorMsg.getXid()) { |
| 320 | pendingGroupId = entry.getKey(); |
| 321 | break; |
| 322 | } |
| 323 | } |
sangho | 22a805d | 2015-02-13 09:45:43 -0800 | [diff] [blame] | 324 | if (pendingGroupId == null) { |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 325 | log.warn("Error for unknown group operation: {}", |
| 326 | errorMsg.getXid()); |
| 327 | } else { |
| 328 | GroupOperation operation = |
| 329 | pendingGroupOperations.get(pendingGroupId); |
sangho | 7ff0181 | 2015-02-09 16:21:53 -0800 | [diff] [blame] | 330 | DeviceId deviceId = DeviceId.deviceId(Dpid.uri(dpid)); |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 331 | if (operation != null) { |
sangho | 7ff0181 | 2015-02-09 16:21:53 -0800 | [diff] [blame] | 332 | providerService.groupOperationFailed(deviceId, |
| 333 | operation); |
sangho | a09f274 | 2015-02-06 14:49:47 -0800 | [diff] [blame] | 334 | pendingGroupOperations.remove(pendingGroupId); |
| 335 | pendingXidMaps.remove(pendingGroupId); |
| 336 | log.warn("Received an group mod error {}", msg); |
| 337 | } else { |
| 338 | log.error("Cannot find pending group operation with group ID: {}", |
| 339 | pendingGroupId); |
| 340 | } |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 341 | } |
| 342 | break; |
| 343 | } |
| 344 | default: |
Jonathan Hart | 7baba07 | 2015-02-23 14:27:59 -0800 | [diff] [blame] | 345 | break; |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 346 | } |
| 347 | } |
| 348 | |
| 349 | @Override |
| 350 | public void switchAdded(Dpid dpid) { |
sangho | 01a883c | 2015-02-23 11:01:50 -0800 | [diff] [blame] | 351 | OpenFlowSwitch sw = controller.getSwitch(dpid); |
Lei Xu | dee1aff | 2015-10-16 00:45:10 -0500 | [diff] [blame] | 352 | if (sw == null) { |
| 353 | return; |
| 354 | } |
sangho | 01a883c | 2015-02-23 11:01:50 -0800 | [diff] [blame] | 355 | if (isGroupSupported(sw)) { |
| 356 | GroupStatsCollector gsc = new GroupStatsCollector( |
| 357 | controller.getSwitch(dpid), POLL_INTERVAL); |
| 358 | gsc.start(); |
| 359 | collectors.put(dpid, gsc); |
| 360 | } |
Lei Xu | dee1aff | 2015-10-16 00:45:10 -0500 | [diff] [blame] | 361 | |
| 362 | //figure out race condition |
| 363 | if (controller.getSwitch(dpid) == null) { |
| 364 | switchRemoved(dpid); |
| 365 | } |
sangho | 5afd02a | 2015-02-03 20:07:35 -0800 | [diff] [blame] | 366 | } |
| 367 | |
| 368 | @Override |
| 369 | public void switchRemoved(Dpid dpid) { |
| 370 | GroupStatsCollector collector = collectors.remove(dpid); |
| 371 | if (collector != null) { |
| 372 | collector.stop(); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | @Override |
| 377 | public void switchChanged(Dpid dpid) { |
| 378 | } |
| 379 | |
| 380 | @Override |
| 381 | public void portChanged(Dpid dpid, OFPortStatus status) { |
| 382 | } |
| 383 | |
| 384 | @Override |
| 385 | public void receivedRoleReply(Dpid dpid, RoleState requested, RoleState response) { |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | } |