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..ef24b2c 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 identified + 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",