Interface SystemGlobalConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface SystemGlobalConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
system-wide configuration parameters
This class represents the following YANG schema fragment defined in module openconfig-system
grouping system-global-config {
leaf hostname {
type oc-inet:domain-name;
}
leaf domain-name {
type oc-inet:domain-name;
}
leaf login-banner {
type string;
}
leaf motd-banner {
type string;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn domainName, ornullif it is not present.Return hostname, ornullif it is not present.Return loginBanner, ornullif it is not present.Return motdBanner, ornullif it is not present.Class<? extends SystemGlobalConfig>default @NonNull DomainNameReturn domainName, guaranteed to be non-null.default @NonNull DomainNameReturn hostname, guaranteed to be non-null.default @NonNull StringReturn loginBanner, guaranteed to be non-null.default @NonNull StringReturn motdBanner, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends SystemGlobalConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getHostname
DomainName getHostname()Return hostname, ornullif it is not present.The hostname of the device -- should be a single domain label, without the domain.- Returns:
DomainNamehostname, ornullif it is not present.
-
requireHostname
Return hostname, guaranteed to be non-null.The hostname of the device -- should be a single domain label, without the domain.- Returns:
DomainNamehostname, guaranteed to be non-null.- Throws:
NoSuchElementException- if hostname is not present
-
getDomainName
DomainName getDomainName()Return domainName, ornullif it is not present.Specifies the domain name used to form fully qualified name for unqualified hostnames.- Returns:
DomainNamedomainName, ornullif it is not present.
-
requireDomainName
Return domainName, guaranteed to be non-null.Specifies the domain name used to form fully qualified name for unqualified hostnames.- Returns:
DomainNamedomainName, guaranteed to be non-null.- Throws:
NoSuchElementException- if domainName is not present
-
getLoginBanner
String getLoginBanner()Return loginBanner, ornullif it is not present.The console login message displayed before the login prompt, i.e., before a user logs into the system.- Returns:
StringloginBanner, ornullif it is not present.
-
requireLoginBanner
Return loginBanner, guaranteed to be non-null.The console login message displayed before the login prompt, i.e., before a user logs into the system.- Returns:
StringloginBanner, guaranteed to be non-null.- Throws:
NoSuchElementException- if loginBanner is not present
-
getMotdBanner
String getMotdBanner()Return motdBanner, ornullif it is not present.The console message displayed after a user logs into the system. They system may append additional standard information such as the current system date and time, uptime, last login timestamp, etc.- Returns:
StringmotdBanner, ornullif it is not present.
-
requireMotdBanner
Return motdBanner, guaranteed to be non-null.The console message displayed after a user logs into the system. They system may append additional standard information such as the current system date and time, uptime, last login timestamp, etc.- Returns:
StringmotdBanner, guaranteed to be non-null.- Throws:
NoSuchElementException- if motdBanner is not present
-