Search in sources :

Example 6 with RegionMappingRemove

use of org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingRemove in project open-kilda by telstra.

the class SwitchMonitor method loseReadOnlyRegion.

private void loseReadOnlyRegion(String region) {
    carrier.regionUpdateNotification(new RegionMappingRemove(switchId, region, false));
    carrier.sendSwitchAvailabilityUpdateNotification(switchId, makeDump());
}
Also used : RegionMappingRemove(org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingRemove)

Aggregations

RegionMappingRemove (org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingRemove)6 RegionMappingSet (org.openkilda.wfm.topology.floodlightrouter.model.RegionMappingSet)5 Test (org.junit.Test)4 SwitchInfoData (org.openkilda.messaging.info.event.SwitchInfoData)4 SwitchAvailabilityData (org.openkilda.messaging.model.SwitchAvailabilityData)4 Duration (java.time.Duration)2 Instant (java.time.Instant)2 Collections (java.util.Collections)2 Comparator (java.util.Comparator)2 Objects (java.util.Objects)2 Collectors (java.util.stream.Collectors)2 Assert (org.junit.Assert)2 RunWith (org.junit.runner.RunWith)2 ArgumentMatchers.any (org.mockito.ArgumentMatchers.any)2 ArgumentMatchers.argThat (org.mockito.ArgumentMatchers.argThat)2 ArgumentMatchers.eq (org.mockito.ArgumentMatchers.eq)2 Mock (org.mockito.Mock)2 Mockito.reset (org.mockito.Mockito.reset)2 Mockito.times (org.mockito.Mockito.times)2 Mockito.verify (org.mockito.Mockito.verify)2