Thomas Vachuska
Committed by Gerrit Code Review

ONOS-2380 Modified wipe-out command to withdraw and purge all events regardless of their state.

Change-Id: I3d537a8bad719b94712b915a6b1d99a7bdc862e5
......@@ -24,7 +24,6 @@ import org.onosproject.net.device.DeviceAdminService;
import org.onosproject.net.host.HostAdminService;
import org.onosproject.net.intent.Intent;
import org.onosproject.net.intent.IntentService;
import org.onosproject.net.intent.IntentState;
import org.onosproject.net.link.LinkAdminService;
/**
......@@ -87,9 +86,7 @@ public class WipeOutCommand extends ClustersListCommand {
print("Wiping intents");
IntentService intentService = get(IntentService.class);
for (Intent intent : intentService.getIntents()) {
if (intentService.getIntentState(intent.key()) == IntentState.INSTALLED) {
intentService.withdraw(intent);
}
intentService.purge(intent);
}
}
......