Interface ExampleDataCenterData
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.DataRoot
@Generated("mdsal-binding-generator")
public interface ExampleDataCenterData
extends org.opendaylight.yangtools.yang.binding.DataRoot
Example of yang model for data center Copyright (c) 2021 PANTHEON.tech s.r.o.
All Rights Reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at
https://www.eclipse.org/legal/epl-v10.html
This class represents the following YANG schema fragment defined in module example-data-center
module example-data-center {
yang-version 1.1;
namespace urn:example:data-center;
prefix sfarm;
revision 2018-08-07;
list server {
key name;
leaf name {
type string;
}
action reset {
input input {
leaf reset-at {
type string;
}
}
output output {
leaf reset-finished-at {
type string;
}
}
}
}
container device {
action start {
input input {
leaf start-at {
type string;
}
}
output output {
leaf start-finished-at {
type string;
}
}
}
}
container box-out {
container box-in {
action open;
}
}
}
-
Method Summary
Modifier and TypeMethodDescriptionReturn boxOut, ornullif it is not present.Return device, ornullif it is not present.Return server, ornullif it is not present.Return server, or an empty list if it is not present.
-
Method Details
-
getServer
Return server, ornullif it is not present.- Returns:
Map<ServerKey, Server>server, ornullif it is not present.
-
nonnullServer
Return server, or an empty list if it is not present.- Returns:
Map<ServerKey, Server>server, or an empty list if it is not present.
-
getDevice
Device getDevice()Return device, ornullif it is not present.- Returns:
Devicedevice, ornullif it is not present.
-
getBoxOut
BoxOut getBoxOut()Return boxOut, ornullif it is not present.- Returns:
BoxOutboxOut, ornullif it is not present.
-