use of org.openkilda.floodlight.error.SwitchIncorrectMeterException in project open-kilda by telstra.
the class MeterVerifyCommand method validateMeterConfig.
private void validateMeterConfig(MeterSchema actualSchema, boolean isInaccurate) {
DatapathId datapathId = getSw().getId();
MeterSchema expectedSchema = MeterSchemaMapper.INSTANCE.map(datapathId, makeMeterAddMessage());
if (!expectedSchema.equals(actualSchema)) {
throw maskCallbackException(new SwitchIncorrectMeterException(datapathId, meterConfig, expectedSchema, actualSchema, isInaccurate));
}
}
Aggregations