use of org.openkilda.messaging.payload.FeatureTogglePayload in project open-kilda by telstra.
the class Common method a_clean_flow_topology.
/**
* This code will make sure there aren't any flows
*/
@Given("^a clean flow topology$")
public void a_clean_flow_topology() throws Throwable {
FlowUtils.cleanupFlows();
FeatureTogglePayload features = new FeatureTogglePayload(true, true);
FlowUtils.updateFeaturesStatus(features);
}
use of org.openkilda.messaging.payload.FeatureTogglePayload in project open-kilda by telstra.
the class FlowReinstallTest method flowRerouteFeatureStatus.
@When("flow reroute feature is (on|off)$")
public void flowRerouteFeatureStatus(final String statusString) {
boolean status = statusString.equals("on");
FeatureTogglePayload desired = new FeatureTogglePayload(null, status);
FeatureTogglePayload result = FlowUtils.updateFeaturesStatus(desired);
assertNotNull(result);
assertEquals(status, result.getReflowOnSwitchActivationEnabled());
assertEquals(desired.getReflowOnSwitchActivationEnabled(), result.getReflowOnSwitchActivationEnabled());
}
Aggregations