1. Replace getMatchValues with getBigMatchValues
2. Log stacktrace, not just exception for NPE in install/remove flow/group
Change-Id: I9ee4093b028bda864fd554e95306df032a494038
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
@Override
public void setMatch(MatchBuilder matchBuilderInOut, MatchInfo matchInfo, Map<Class<?>, Object> mapMatchBuilder) {
@Override
public void setMatch(MatchBuilder matchBuilderInOut, MatchInfo matchInfo, Map<Class<?>, Object> mapMatchBuilder) {
- StringBuffer nodeConnectorId = new StringBuffer().append("openflow:").append(matchInfo.getMatchValues()[0])
- .append(':').append(matchInfo.getMatchValues()[1]);
+ StringBuffer nodeConnectorId = new StringBuffer().append("openflow:").append(matchInfo.getBigMatchValues()[0])
+ .append(':').append(matchInfo.getBigMatchValues()[1]);
matchBuilderInOut.setInPort(new NodeConnectorId(nodeConnectorId.toString()));
}
},
matchBuilderInOut.setInPort(new NodeConnectorId(nodeConnectorId.toString()));
}
},
}
});
} catch (Exception e) {
}
});
} catch (Exception e) {
- s_logger.error("Could not install flow: {}, exception: {}", flowEntity, e);
+ s_logger.error("Could not install flow: {}", flowEntity, e);
}
});
} catch (Exception e) {
}
});
} catch (Exception e) {
- s_logger.error("Could not install Group: {}, exception: {}", groupEntity, e);
+ s_logger.error("Could not install Group: {}", groupEntity, e);
});
} catch (Exception e) {
});
} catch (Exception e) {
- s_logger.error("Could not remove Flow: {}, exception: {}", flowEntity, e);
+ s_logger.error("Could not remove Flow: {}", flowEntity, e);
}
});
} catch (Exception e) {
}
});
} catch (Exception e) {
- s_logger.error("Could not remove Group: {}, exception: {}", groupEntity, e);
+ s_logger.error("Could not remove Group: {}", groupEntity, e);