commit | 402354ee6356f5fb30353e3195b0b6cf7832aa74 | [log] [tgz] |
---|---|---|
author | Sangho Shin <sangho@onlab.us> | Mon Oct 27 16:53:05 2014 -0700 |
committer | Sangho Shin <sangho@onlab.us> | Mon Oct 27 16:54:25 2014 -0700 |
tree | a17e03d375fa7d82be8b3d9f28e9e6c10fa38336 | |
parent | 1e712adac068888047d45746be74ab7aad8f0115 [diff] |
Fix a wrong comparing of switch object ( was using Topology.Switch, supposed to use IOF13Switch). Change-Id: Ib5b848af3ea1e4adc1f423865e314af9d12d32c2
diff --git a/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java b/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java index 11eab2f..7def639 100644 --- a/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java +++ b/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java
@@ -1878,7 +1878,9 @@ actions.add(decMplsTtlAction); } - if ((sw instanceof OFSwitchImplDellOSR) && isTransitRouter(sw) && !php) { + IOF13Switch sw13 = (IOF13Switch) floodlightProvider.getMasterSwitch( + getSwId(sw.getDpid().toString())); + if ((sw13 instanceof OFSwitchImplDellOSR) && isTransitRouter(sw) && !php) { PortNumber port = pickOnePort(sw, fwdSws); if (port == null) { log.warn("Failed to get a port from NeightborSet");