blob: e0a3d69ebde17f62ebc44c69017292aa46c0d6d3 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2014-present Open Networking Foundation
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,
Andrea Campanella1c24fb92018-12-20 16:43:59 +010030 VIRTUAL, FIBER_SWITCH, MICROWAVE, OLT, ONU, OPTICAL_AMPLIFIER, OLS, TERMINAL_DEVICE,
31 OTHER, SERVER
tom18567e92014-08-26 01:39:47 -070032 }
tome33cc1a2014-08-25 21:59:41 -070033
tom18567e92014-08-26 01:39:47 -070034 /**
35 * Returns the device identifier.
36 *
37 * @return device id
38 */
wei wei89ddc322015-03-22 16:29:04 -050039 @Override
tom18567e92014-08-26 01:39:47 -070040 DeviceId id();
tome33cc1a2014-08-25 21:59:41 -070041
tom18567e92014-08-26 01:39:47 -070042 /**
43 * Returns the type of the infrastructure device.
44 *
45 * @return type of the device
46 */
47 Type type();
48
49 /**
50 * Returns the device manufacturer name.
51 *
52 * @return manufacturer name
53 */
54 String manufacturer();
55
56 /**
57 * Returns the device hardware version.
58 *
59 * @return hardware version
60 */
61 String hwVersion();
62
63 /**
64 * Returns the device software version.
65 *
66 * @return software version
67 */
68 String swVersion();
69
70 /**
71 * Returns the device serial number.
72 *
73 * @return serial number
74 */
75 String serialNumber();
76
alshabib7911a052014-10-16 17:49:37 -070077 /**
78 * Returns the device chassis id.
79 *
80 * @return chassis id
81 */
82 ChassisId chassisId();
83
tome33cc1a2014-08-25 21:59:41 -070084}