blob: 28ff72889dee811a022a285bc2f87ce7432cfd6c [file] [log] [blame]
Simon Hunt6fefd852017-11-13 17:09:43 -08001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.t3.api;
18
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010019import org.onlab.packet.EthType;
Simon Hunt6fefd852017-11-13 17:09:43 -080020import org.onosproject.net.ConnectPoint;
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010021import org.onosproject.net.HostId;
Simon Hunt6fefd852017-11-13 17:09:43 -080022import org.onosproject.net.flow.TrafficSelector;
23
Andrea Campanella6be5c872018-02-21 14:28:20 +010024import java.util.List;
Andrea Campanella79cb17d2018-02-27 18:03:17 +010025import java.util.Set;
Andrea Campanella6be5c872018-02-21 14:28:20 +010026
Simon Hunt6fefd852017-11-13 17:09:43 -080027/**
28 * API for troubleshooting services, providing static analysis of installed
29 * flows and groups.
30 */
31public interface TroubleshootService {
32
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010033 /**
Andrea Campanella6be5c872018-02-21 14:28:20 +010034 * Requests a static trace be performed between all hosts in the network, given a type of traffic.
35 *
36 * @param type the etherType of the traffic we want to trace.
37 * @return a trace result
38 */
39 List<StaticPacketTrace> pingAll(EthType.EtherType type);
40
41 /**
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010042 * Requests a static trace be performed between the two hosts in the network, given a type of traffic.
43 *
44 * @param sourceHost source host
45 * @param destinationHost destination host
46 * @param type the etherType of the traffic we want to trace.
47 * @return a trace result
48 */
Andrea Campanella79cb17d2018-02-27 18:03:17 +010049 Set<StaticPacketTrace> trace(HostId sourceHost, HostId destinationHost, EthType.EtherType type);
Simon Hunt6fefd852017-11-13 17:09:43 -080050
51 /**
52 * Requests a static trace be performed for the given traffic selector
53 * starting at the given connect point.
54 *
55 * @param packet description of packet
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010056 * @param in point at which packet starts
Simon Hunt6fefd852017-11-13 17:09:43 -080057 * @return a trace result
58 */
59 StaticPacketTrace trace(TrafficSelector packet, ConnectPoint in);
60}