blob: cbd261f94b5312dc36d0017eaf5a560cd8eed40b [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
tome33cc1a2014-08-25 21:59:41 -070016package org.onlab.onos.net;
17
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 {
Praseed Balakrishnana22eadf2014-10-20 14:21:45 -070029 SWITCH, ROUTER, ROADM, FIREWALL, BALANCER, IPS, IDS, CONTROLLER, 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 */
37 DeviceId id();
tome33cc1a2014-08-25 21:59:41 -070038
tom18567e92014-08-26 01:39:47 -070039 /**
40 * Returns the type of the infrastructure device.
41 *
42 * @return type of the device
43 */
44 Type type();
45
46 /**
47 * Returns the device manufacturer name.
48 *
49 * @return manufacturer name
50 */
51 String manufacturer();
52
53 /**
54 * Returns the device hardware version.
55 *
56 * @return hardware version
57 */
58 String hwVersion();
59
60 /**
61 * Returns the device software version.
62 *
63 * @return software version
64 */
65 String swVersion();
66
67 /**
68 * Returns the device serial number.
69 *
70 * @return serial number
71 */
72 String serialNumber();
73
alshabib7911a052014-10-16 17:49:37 -070074 /**
75 * Returns the device chassis id.
76 *
77 * @return chassis id
78 */
79 ChassisId chassisId();
80
tom18567e92014-08-26 01:39:47 -070081 // Device realizedBy(); ?
82
83 // ports are not provided directly, but rather via DeviceService.getPorts(Device device);
84
85 // Set<Behavior> behaviours(); // set of supported behaviours
tome33cc1a2014-08-25 21:59:41 -070086
87}