blob: affb6a563f6df05519b8b8f37f85ad92725950b6 [file] [log] [blame]
Parvathi Mef749632016-07-07 13:30:43 -07001/*
Brian O'Connor0a4e6742016-09-15 23:03:10 -07002 * Copyright 2016-present Open Networking Laboratory
Parvathi Mef749632016-07-07 13:30:43 -07003 *
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.patchpanel.impl;
18import org.onosproject.net.ConnectPoint;
19
20/**
Jonathan Hart382119e2016-09-02 13:14:49 -070021 * A service for the patch panel application to export and use with the cli.
Parvathi Mef749632016-07-07 13:30:43 -070022 */
23public interface PatchPanelService {
24
25 /**
Jonathan Hart382119e2016-09-02 13:14:49 -070026 * Adds a new patch between two connect points.
27 *
Parvathi Mef749632016-07-07 13:30:43 -070028 * @param cp the first connect point
29 * @param cp2 the second connect point
Ray Milkey0bb1e102016-11-10 14:51:27 -080030 * @return true if the patch was created, false otherwise
Parvathi Mef749632016-07-07 13:30:43 -070031 */
Jonathan Hart382119e2016-09-02 13:14:49 -070032 boolean addPatch(ConnectPoint cp, ConnectPoint cp2);
33}