blob: 01bae578a5b4b20fa52572eb68f5312aef3b15ab [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
24/**
25 * API for troubleshooting services, providing static analysis of installed
26 * flows and groups.
27 */
28public interface TroubleshootService {
29
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010030 /**
31 * Requests a static trace be performed between the two hosts in the network, given a type of traffic.
32 *
33 * @param sourceHost source host
34 * @param destinationHost destination host
35 * @param type the etherType of the traffic we want to trace.
36 * @return a trace result
37 */
38 StaticPacketTrace trace(HostId sourceHost, HostId destinationHost, EthType.EtherType type);
Simon Hunt6fefd852017-11-13 17:09:43 -080039
40 /**
41 * Requests a static trace be performed for the given traffic selector
42 * starting at the given connect point.
43 *
44 * @param packet description of packet
Andrea Campanellaaf34b7c2018-02-08 17:10:11 +010045 * @param in point at which packet starts
Simon Hunt6fefd852017-11-13 17:09:43 -080046 * @return a trace result
47 */
48 StaticPacketTrace trace(TrafficSelector packet, ConnectPoint in);
49}