Search in sources :

Example 1 with SwitchIncorrectMirrorGroupException

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)));
    }
}
Also used : OFBucket(org.projectfloodlight.openflow.protocol.OFBucket) SwitchIncorrectMirrorGroupException(org.openkilda.floodlight.error.SwitchIncorrectMirrorGroupException) OFFactory(org.projectfloodlight.openflow.protocol.OFFactory) DatapathId(org.projectfloodlight.openflow.types.DatapathId)

Aggregations

SwitchIncorrectMirrorGroupException (org.openkilda.floodlight.error.SwitchIncorrectMirrorGroupException)1 OFBucket (org.projectfloodlight.openflow.protocol.OFBucket)1 OFFactory (org.projectfloodlight.openflow.protocol.OFFactory)1 DatapathId (org.projectfloodlight.openflow.types.DatapathId)1