blob: 33189e04d732d94b71823d8daf236cd1fb46152d [file] [log] [blame]
Phaneendra Manda0c423422016-04-19 00:31:53 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Phaneendra Manda0c423422016-04-19 00:31:53 +05303 *
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.vtnrsc.portchainsfmap;
17
18import java.util.List;
19
20import org.onosproject.vtnrsc.PortChainId;
21import org.onosproject.vtnrsc.ServiceFunctionGroup;
22
23/**
24 * Service for interacting with the inventory of service functions for a given port chain.
25 */
26public interface PortChainSfMapService {
27
28 /**
29 * Returns true if the port chain exists.
30 *
31 * @param portChainId port chain identifier
32 * @return true or false if one with the given identifier exists.
33 */
34 boolean exists(PortChainId portChainId);
35
36 /**
37 * Returns the list of service function groups available in the given port chain.
38 *
39 * @param portChainId port chain id
40 * @return list of service functions
41 */
42 List<ServiceFunctionGroup> getServiceFunctions(PortChainId portChainId);
43
44}