blob: bd55d79df6eaa0ce1b8c86c271da19391756b90f [file] [log] [blame]
Satish Kf6d87cb2015-11-30 19:59:22 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Satish Kf6d87cb2015-11-30 19:59:22 +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.iptopology.api.link;
17
18import org.onosproject.iptopology.api.IpLinkIdentifier;
19import org.onosproject.iptopology.api.LinkTed;
20import org.onosproject.iptopology.api.TerminationPoint;
21import org.onosproject.net.Description;
22
23/**
24 * Describes an ip link.
25 */
26public interface IpLinkDescription extends Description {
27
28 /**
29 * Returns the link source.
30 *
31 * @return links source
32 */
33 TerminationPoint src();
34
35 /**
36 * Returns the link destination.
37 *
38 * @return links destination
39 */
40 TerminationPoint dst();
41
42 /**
43 * Returns the link identifier.
44 *
45 * @return links identifier informations
46 */
47 IpLinkIdentifier linkIdentifier();
48
49 /**
50 * Returns the link traffic engineering parameters.
51 *
52 * @return links traffic engineering parameters
53 */
54 LinkTed linkTed();
55}