blob: ded1a7927c1a007d90e99539e54672d782cc04d6 [file] [log] [blame]
cheng fan48e832c2015-05-29 01:54:47 +08001/*
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.pcep.api;
17
18/*
19 * Represent to provider facing side of a switch
20 */
21public interface PcepSwitch extends PcepOperator {
22
cheng fan7716ec92015-05-31 01:53:19 +080023 public static enum DeviceType {
cheng fan48e832c2015-05-29 01:54:47 +080024 /* optical device */
25 ROADM,
26
27 /* electronic device */
28 OTN,
29
30 /* router */
31 ROUTER,
32
33 /* unkown type */
34 UNKNOW,
35 }
36
37 /**
38 * Gets a string version of the ID for this switch.
39 * @return string version of the ID
40 */
41 public String getStringId();
42
43 /**
44 * Gets the datapathId of the switch.
45 * @return the switch dpid in long format
46 */
47 public long getId();
48
49 public long getNeId();
50
51 /**
52 * Gets the sub type of the device.
53 * @return the sub type
54 */
cheng fan7716ec92015-05-31 01:53:19 +080055 public DeviceType getDeviceType();
cheng fan48e832c2015-05-29 01:54:47 +080056
57 /**
58 * fetch the manufacturer description.
59 * @return the description
60 */
61 public String manufacturerDescription();
62
63 /**
64 * fetch the datapath description.
65 * @return the description
66 */
67 public String datapathDescription();
68
69 /**
70 * fetch the hardware description.
71 * @return the description
72 */
73 public String hardwareDescription();
74
75 /**
76 * fetch the software description.
77 * @return the description
78 */
79 public String softwareDescription();
80
81 /**
82 * fetch the serial number.
83 * @return the serial
84 */
85 public String serialNumber();
86
87 /**
88 * Indicates if this switch is optical.
89 * @return true if optical
90 */
91 public boolean isOptical();
92}