tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net; |
| 2 | |
| 3 | /** |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame] | 4 | * Representation of a network infrastructure device. |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 5 | */ |
tom | b36046e | 2014-08-27 00:22:24 -0700 | [diff] [blame] | 6 | public interface Device extends Element { |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 7 | |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame] | 8 | /** |
| 9 | * Coarse classification of the type of the infrastructure device. |
| 10 | */ |
| 11 | public enum Type { |
| 12 | SWITCH, ROUTER, FIREWALL, BALANCER, IPS, IDS, CONTROLLER, OTHER |
| 13 | } |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 14 | |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame] | 15 | /** |
| 16 | * Returns the device identifier. |
| 17 | * |
| 18 | * @return device id |
| 19 | */ |
| 20 | DeviceId id(); |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 21 | |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame] | 22 | /** |
| 23 | * Returns the type of the infrastructure device. |
| 24 | * |
| 25 | * @return type of the device |
| 26 | */ |
| 27 | Type type(); |
| 28 | |
| 29 | /** |
| 30 | * Returns the device manufacturer name. |
| 31 | * |
| 32 | * @return manufacturer name |
| 33 | */ |
| 34 | String manufacturer(); |
| 35 | |
| 36 | /** |
| 37 | * Returns the device hardware version. |
| 38 | * |
| 39 | * @return hardware version |
| 40 | */ |
| 41 | String hwVersion(); |
| 42 | |
| 43 | /** |
| 44 | * Returns the device software version. |
| 45 | * |
| 46 | * @return software version |
| 47 | */ |
| 48 | String swVersion(); |
| 49 | |
| 50 | /** |
| 51 | * Returns the device serial number. |
| 52 | * |
| 53 | * @return serial number |
| 54 | */ |
| 55 | String serialNumber(); |
| 56 | |
| 57 | // Device realizedBy(); ? |
| 58 | |
| 59 | // ports are not provided directly, but rather via DeviceService.getPorts(Device device); |
| 60 | |
| 61 | // Set<Behavior> behaviours(); // set of supported behaviours |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 62 | |
| 63 | } |