blob: 80e6e48b79c54e0d3eed84df7b160f9439a2127e [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 Open Networking Laboratory
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net;
tome33cc1a2014-08-25 21:59:41 -070017
alshabib7911a052014-10-16 17:49:37 -070018import org.onlab.packet.ChassisId;
19
tome33cc1a2014-08-25 21:59:41 -070020/**
tom18567e92014-08-26 01:39:47 -070021 * Representation of a network infrastructure device.
tome33cc1a2014-08-25 21:59:41 -070022 */
tomb36046e2014-08-27 00:22:24 -070023public interface Device extends Element {
tome33cc1a2014-08-25 21:59:41 -070024
tom18567e92014-08-26 01:39:47 -070025 /**
26 * Coarse classification of the type of the infrastructure device.
27 */
28 public enum Type {
Marc De Leenheerb9311372015-07-09 11:36:49 -070029 SWITCH, ROUTER, ROADM, OTN, ROADM_OTN, FIREWALL, BALANCER, IPS, IDS, CONTROLLER, VIRTUAL, FIBER_SWITCH, OTHER
tom18567e92014-08-26 01:39:47 -070030 }
tome33cc1a2014-08-25 21:59:41 -070031
tom18567e92014-08-26 01:39:47 -070032 /**
33 * Returns the device identifier.
34 *
35 * @return device id
36 */
wei wei89ddc322015-03-22 16:29:04 -050037 @Override
tom18567e92014-08-26 01:39:47 -070038 DeviceId id();
tome33cc1a2014-08-25 21:59:41 -070039
tom18567e92014-08-26 01:39:47 -070040 /**
41 * Returns the type of the infrastructure device.
42 *
43 * @return type of the device
44 */
45 Type type();
46
47 /**
48 * Returns the device manufacturer name.
49 *
50 * @return manufacturer name
51 */
52 String manufacturer();
53
54 /**
55 * Returns the device hardware version.
56 *
57 * @return hardware version
58 */
59 String hwVersion();
60
61 /**
62 * Returns the device software version.
63 *
64 * @return software version
65 */
66 String swVersion();
67
68 /**
69 * Returns the device serial number.
70 *
71 * @return serial number
72 */
73 String serialNumber();
74
alshabib7911a052014-10-16 17:49:37 -070075 /**
76 * Returns the device chassis id.
77 *
78 * @return chassis id
79 */
80 ChassisId chassisId();
81
tome33cc1a2014-08-25 21:59:41 -070082}