if (port != null) {
((OFFlowMod) fm).setOutPort(port);
}
- if (command == OFFlowMod.OFPFC_ADD
- || command == OFFlowMod.OFPFC_MODIFY
+ if (command == OFFlowMod.OFPFC_ADD || command == OFFlowMod.OFPFC_MODIFY
|| command == OFFlowMod.OFPFC_MODIFY_STRICT) {
- if (flow.getIdleTimeout() != 0 || flow.getHardTimeout() != 0) {
- // Instruct switch to let controller know when flow expires
- ((OFFlowMod) fm).setFlags((short) 1);
- }
+ // Instruct switch to let controller know when flow is removed
+ ((OFFlowMod) fm).setFlags((short) 1);
}
} else {
((V6FlowMod) fm).setVendor();
if (port != null) {
((V6FlowMod) fm).setOutPort(port);
}
- if (command == OFFlowMod.OFPFC_ADD
- || command == OFFlowMod.OFPFC_MODIFY
+ if (command == OFFlowMod.OFPFC_ADD || command == OFFlowMod.OFPFC_MODIFY
|| command == OFFlowMod.OFPFC_MODIFY_STRICT) {
- if (flow.getIdleTimeout() != 0 || flow.getHardTimeout() != 0) {
- // Instruct switch to let controller know when flow expires
- ((V6FlowMod) fm).setFlags((short) 1);
- }
+ // Instruct switch to let controller know when flow is removed
+ ((V6FlowMod) fm).setFlags((short) 1);
}
}
logger.trace("Openflow Match: {} Openflow Actions: {}", ofMatch,