Skip to content
Snippets Groups Projects
Commit 8dba4b3e authored by Ryan Izard's avatar Ryan Izard Committed by GitHub
Browse files

Merge pull request #673 from rizard/openflow15

small fixes
parents 00d965d6 ef7ca2e8
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,9 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
FlowModUtils.setActions(fmb, actions, sw);
/* Configure for particular switch pipeline */
fmb.setTableId(FLOWMOD_DEFAULT_TABLE_ID);
if (sw.getOFFactory().getVersion().compareTo(OFVersion.OF_10) != 0) {
fmb.setTableId(FLOWMOD_DEFAULT_TABLE_ID);
}
if (log.isDebugEnabled()) {
log.debug("write drop flow-mod sw={} match={} flow-mod={}",
......@@ -478,9 +480,9 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
tmp = configParameters.get("table-id");
if (tmp != null) {
FLOWMOD_DEFAULT_TABLE_ID = TableId.of(ParseUtils.parseHexOrDecInt(tmp));
log.info("Default idle timeout set to {}.", FLOWMOD_DEFAULT_IDLE_TIMEOUT);
log.info("Default table ID set to {}.", FLOWMOD_DEFAULT_TABLE_ID);
} else {
log.info("Default idle timeout not configured. Using {}.", FLOWMOD_DEFAULT_IDLE_TIMEOUT);
log.info("Default table ID not configured. Using {}.", FLOWMOD_DEFAULT_TABLE_ID);
}
tmp = configParameters.get("priority");
if (tmp != null) {
......
......@@ -233,7 +233,7 @@ public class TopologyInstance {
*/
public Set<OFPort> swBroadcastPorts(DatapathId sw) {
if (!broadcastPortMap.containsKey(sw) || broadcastPortMap.get(sw) == null) {
log.warn("Could not locate broadcast ports for switch {}", sw);
log.debug("Could not locate broadcast ports for switch {}", sw);
return Collections.emptySet();
} else {
if (log.isDebugEnabled()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment