@Beta @NonNullByDefault public final class YangLibraryConstants extends Object
ietf-yang-library.yang
. As schema-mount works in concert with yang-library, we need
these constants to interpret correctly categorize incoming data and present them to schema resolution process.
While RFC7895 and RFC8525 are not strictly required by YANG, RFC7950 contains a weak reference to it when dealing
with capability negotiation on protocol layers. Moreover RFC8528 makes it explicit that an instance of yang-library
is mounted underneath both inline
and shared-schema
types of mount.
While we could mandate use of either RFC7895 or RFC8525 across the board, this is not feasible, as mount points may be nested and point to external systems -- hence it is completely possible to encounter both old and new information in a single mount point tree.
Modifier and Type | Class and Description |
---|---|
static class |
YangLibraryConstants.ContainerName
Top-level containers which hold YANG Library information, ordered by descending preference, with more modern
and/or preferred entries first.
|
Modifier and Type | Field and Description |
---|---|
static String |
MODULE_NAME
The module name assigned to
ietf-yang-library . |
static URI |
MODULE_NAMESPACE
The namespace assigned to
ietf-yang-library . |
public static final URI MODULE_NAMESPACE
ietf-yang-library
. This constant is required for XML-like parsers, using
XML namespaces to reference modules.public static final String MODULE_NAME
ietf-yang-library
. This constant is required for JSON-like parsers, using
module names to reference modules.Copyright © 2020 OpenDaylight. All rights reserved.