From 07b6f3f7278c6e42c985234f5afe126260ff579c Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 27 Jun 2017 10:14:13 -0400 Subject: [PATCH 1/2] Add module-set-id paralleling the leaf with same name in YANG library --- draft-ietf-netmod-schema-mount.org | 3 +++ ietf-yang-schema-mount.yang | 29 +++++++++++++++++++++++++++++ schema-mounts-ex1-lne.json | 1 + 3 files changed, 33 insertions(+) diff --git a/draft-ietf-netmod-schema-mount.org b/draft-ietf-netmod-schema-mount.org index 777a67f..a58178c 100644 --- a/draft-ietf-netmod-schema-mount.org +++ b/draft-ietf-netmod-schema-mount.org @@ -298,6 +298,9 @@ Each entry of the "schema" list contains (and revisions etc.) that are implemented or imported in the mounted schema; +- an identifier representing the listed YANG modules that parallels + module-set-id used in YANG library; + - (optionally) a new "mount-point" list that applies to mount points defined within the mounted schema. diff --git a/ietf-yang-schema-mount.yang b/ietf-yang-schema-mount.yang index 38dce5d..142701f 100644 --- a/ietf-yang-schema-mount.yang +++ b/ietf-yang-schema-mount.yang @@ -242,8 +242,37 @@ module ietf-yang-schema-mount { description "Arbitrary name of the schema entry."; } + leaf module-set-id { + type string; + mandatory true; + description + "Contains a server-specific identifier representing + the current set of modules and submodules indentified + in 'module-list'. The server MUST change the value of + this leaf when the information represented by 'module-list' + changes."; + } uses yanglib:module-list; uses mount-point-list; } } + + /* + * Notifications + */ + notification yang-schema-mount-change { + description + "Generated when the set of modules and submodules supported + for a particular mount point schema has changed."; + leaf module-set-id { + type leafref { + path "/yangmnt:schema-mounts/schema/yangmnt:module-set-id"; + } + mandatory true; + description + "Contains the module-set-id value representing the + set of modules and submodules supported for the identified + schema the time the notification is generated."; + } + } } diff --git a/schema-mounts-ex1-lne.json b/schema-mounts-ex1-lne.json index 6aeab39..f9b7621 100644 --- a/schema-mounts-ex1-lne.json +++ b/schema-mounts-ex1-lne.json @@ -20,6 +20,7 @@ "schema": [ { "name": "ni-schema", + "module-set-id": "4c9805268bc1309be9189ed51d1cadb474068c8b", "module": [ { "name": "ietf-ipv4-unicast-routing", From e196272586f665c18a8ac934a8d19a5fbfd17293 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 27 Jun 2017 10:31:39 -0400 Subject: [PATCH 2/2] fix typo --- ietf-yang-schema-mount.yang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf-yang-schema-mount.yang b/ietf-yang-schema-mount.yang index 142701f..ef24b2c 100644 --- a/ietf-yang-schema-mount.yang +++ b/ietf-yang-schema-mount.yang @@ -247,7 +247,7 @@ module ietf-yang-schema-mount { mandatory true; description "Contains a server-specific identifier representing - the current set of modules and submodules indentified + the current set of modules and submodules identified in 'module-list'. The server MUST change the value of this leaf when the information represented by 'module-list' changes.";