use of org.onosproject.net.device.DeviceAdminService in project onos by opennetworkinglab.
the class WipeOutCommand method wipeOutFlows.
private void wipeOutFlows() {
print("Wiping Flows");
FlowRuleService flowRuleService = get(FlowRuleService.class);
DeviceAdminService deviceAdminService = get(DeviceAdminService.class);
for (Device device : deviceAdminService.getDevices()) {
flowRuleService.purgeFlowRules(device.id());
}
}
Aggregations