Search in sources :

Example 1 with NetworkDiagnosticService

use of org.onosproject.fnl.intf.NetworkDiagnosticService in project onos by opennetworkinglab.

the class TsCheckLoop method doExecute.

@Override
protected void doExecute() {
    NetworkDiagnosticService service = getService(NetworkDiagnosticService.class);
    DeviceService ds = getService(DeviceService.class);
    HostService hs = getService(HostService.class);
    FlowRuleService frs = getService(FlowRuleService.class);
    LinkService ls = getService(LinkService.class);
    service.findAnomalies(NetworkDiagnostic.Type.LOOP).forEach(loop -> print(loop.toString()));
}
Also used : HostService(org.onosproject.net.host.HostService) DeviceService(org.onosproject.net.device.DeviceService) FlowRuleService(org.onosproject.net.flow.FlowRuleService) LinkService(org.onosproject.net.link.LinkService) NetworkDiagnosticService(org.onosproject.fnl.intf.NetworkDiagnosticService)

Example 2 with NetworkDiagnosticService

use of org.onosproject.fnl.intf.NetworkDiagnosticService in project onos by opennetworkinglab.

the class TsAllAnomalies method doExecute.

@Override
protected void doExecute() {
    NetworkDiagnosticService service = getService(NetworkDiagnosticService.class);
    service.findAnomalies().forEach(a -> print(a.toString()));
}
Also used : NetworkDiagnosticService(org.onosproject.fnl.intf.NetworkDiagnosticService)

Aggregations

NetworkDiagnosticService (org.onosproject.fnl.intf.NetworkDiagnosticService)2 DeviceService (org.onosproject.net.device.DeviceService)1 FlowRuleService (org.onosproject.net.flow.FlowRuleService)1 HostService (org.onosproject.net.host.HostService)1 LinkService (org.onosproject.net.link.LinkService)1