blob: 2484369dec85312fb2955ad73b3f135c403f0115 [file] [log] [blame]
sangho27462c62015-05-14 00:39:53 -07001/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16package org.onosproject.segmentrouting;
17
18import java.util.List;
19
20/**
21 * Segment Routing Service for REST API.
22 */
23public interface SegmentRoutingService {
24
25 /**
26 * Returns all tunnels.
27 *
28 * @return list of tunnels
29 */
30 List<Tunnel> getTunnels();
31
32 /**
33 * Creates a tunnel.
34 *
35 * @param tunnel tunnel reference to create
36 */
37 void createTunnel(Tunnel tunnel);
38
39 /**
40 * Returns all policies.
41 *
42 * @return list of policy
43 */
44 List<Policy> getPolicies();
45
46 /**
47 * Creates a policy.
48 *
49 * @param policy policy reference to create
50 */
51 void createPolicy(Policy policy);
52
53 /**
54 * Removes a tunnel.
55 *
56 * @param tunnel tunnel reference to remove
57 */
58 void removeTunnel(Tunnel tunnel);
59
60 /**
61 * Removes a policy.
62 *
63 * @param policy policy reference to remove
64 */
65 void removePolicy(Policy policy);
66}