use of org.openkilda.floodlight.error.SwitchIncorrectMirrorGroupException in project open-kilda by telstra.
the class GroupVerifyCommand method validateGroupConfig.
private void validateGroupConfig(OFGroupDescStatsEntry group) {
DatapathId datapathId = getSw().getId();
OFFactory ofFactory = getSw().getOFFactory();
List<OFBucket> expected = buildGroupOfBuckets(ofFactory);
List<OFBucket> actual = group.getBuckets();
if (!expected.equals(actual)) {
throw maskCallbackException(new SwitchIncorrectMirrorGroupException(datapathId, mirrorConfig, fromStatsEntry(group)));
}
}
Aggregations