blob: 58b60c6b46e80b332fced66605a27d11af982b2b [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present 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 */
Sho SHIMIZUe2952e42015-09-11 17:11:21 -070028 enum Type {
chengfan5dc1e072015-08-21 15:01:49 -050029 SWITCH, ROUTER, ROADM, OTN, ROADM_OTN, FIREWALL, BALANCER, IPS, IDS, CONTROLLER,
jingjing zhang8056acd2016-01-21 15:30:36 -060030 VIRTUAL, FIBER_SWITCH, MICROWAVE, OLT, ONU, OTHER
tom18567e92014-08-26 01:39:47 -070031 }
tome33cc1a2014-08-25 21:59:41 -070032
tom18567e92014-08-26 01:39:47 -070033 /**
34 * Returns the device identifier.
35 *
36 * @return device id
37 */
wei wei89ddc322015-03-22 16:29:04 -050038 @Override
tom18567e92014-08-26 01:39:47 -070039 DeviceId id();
tome33cc1a2014-08-25 21:59:41 -070040
tom18567e92014-08-26 01:39:47 -070041 /**
42 * Returns the type of the infrastructure device.
43 *
44 * @return type of the device
45 */
46 Type type();
47
48 /**
49 * Returns the device manufacturer name.
50 *
51 * @return manufacturer name
52 */
53 String manufacturer();
54
55 /**
56 * Returns the device hardware version.
57 *
58 * @return hardware version
59 */
60 String hwVersion();
61
62 /**
63 * Returns the device software version.
64 *
65 * @return software version
66 */
67 String swVersion();
68
69 /**
70 * Returns the device serial number.
71 *
72 * @return serial number
73 */
74 String serialNumber();
75
alshabib7911a052014-10-16 17:49:37 -070076 /**
77 * Returns the device chassis id.
78 *
79 * @return chassis id
80 */
81 ChassisId chassisId();
82
tome33cc1a2014-08-25 21:59:41 -070083}