blob: 02c9a111ba3262896f0d6d7252c81645a0cde5f6 [file] [log] [blame]
Georgios Katsikas83600982017-05-28 20:41:45 +02001/*
2 * Copyright 2017-present Open Networking Foundation
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 */
16
17package org.onosproject.drivers.server.devices;
18
Georgios Katsikas2ebd8a02018-06-27 18:32:50 +020019import org.onosproject.drivers.server.devices.nic.NicDevice;
Georgios Katsikas83600982017-05-28 20:41:45 +020020import org.onosproject.net.device.DeviceDescription;
21
22import java.util.Collection;
23
24/**
25 * Carrier of immutable information about a server device.
26 */
27public interface ServerDeviceDescription extends DeviceDescription {
28
29 /**
30 * The set of CPUs of the server device.
31 *
32 * @return set of CPUs of the server device
33 */
34 Collection<CpuDevice> cpus();
35
36 /**
37 * The set of NICs of the server device.
38 *
39 * @return set of NICs of the server device
40 */
41 Collection<NicDevice> nics();
42
43}