From d28a5df4e946275acc9e213556c9ee3c82fc990d Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 8 Mar 2019 06:01:07 +0100 Subject: [PATCH] Add RFC8341 NACM module identity This adds revisions of RFC8341 without actually binding to them. Change-Id: Icaae9347c5f4e3f02f976d629a4f760eca6dd464 Signed-off-by: Robert Varga --- .../yangtools/rfc6536/model/api/NACMConstants.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/yang/rfc6536-model-api/src/main/java/org/opendaylight/yangtools/rfc6536/model/api/NACMConstants.java b/yang/rfc6536-model-api/src/main/java/org/opendaylight/yangtools/rfc6536/model/api/NACMConstants.java index 5fbedeb1cd..e25e774fca 100644 --- a/yang/rfc6536-model-api/src/main/java/org/opendaylight/yangtools/rfc6536/model/api/NACMConstants.java +++ b/yang/rfc6536-model-api/src/main/java/org/opendaylight/yangtools/rfc6536/model/api/NACMConstants.java @@ -26,18 +26,30 @@ public final class NACMConstants { private static final String MODULE_NAME = "ietf-netconf-acm"; private static final URI MODULE_NAMESPACE = URI.create("urn:ietf:params:xml:ns:yang:ietf-netconf-acm"); private static final Revision RFC6536_REVISION = Revision.of("2012-02-22"); + private static final Revision RFC8341_REVISION = Revision.of("2018-02-14"); /** * Runtime RFC6536 identity. */ public static final QNameModule RFC6536_MODULE = QNameModule.create(MODULE_NAMESPACE, RFC6536_REVISION).intern(); + /** + * Runtime RFC8341 identity. + */ + public static final QNameModule RFC8341_MODULE = QNameModule.create(MODULE_NAMESPACE, RFC8341_REVISION).intern(); + /** * RFC6536 model source name. */ public static final SourceIdentifier RFC6536_SOURCE = RevisionSourceIdentifier.create(MODULE_NAME, RFC6536_REVISION); + /** + * RFC8341 model source name. + */ + public static final SourceIdentifier RFC8341_SOURCE = RevisionSourceIdentifier.create(MODULE_NAME, + RFC8341_REVISION); + /** * Normative prefix to use when importing {@link #RFC6536_SOURCE}. */ @@ -53,6 +65,6 @@ public final class NACMConstants { * @return Collection of identifiers. */ public static Collection knownModelSources() { - return ImmutableList.of(RFC6536_SOURCE); + return ImmutableList.of(RFC6536_SOURCE, RFC8341_SOURCE); } } -- 2.36.6