Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions draft-ietf-netmod-schema-mount.org
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
29 changes: 29 additions & 0 deletions ietf-yang-schema-mount.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
}
}
1 change: 1 addition & 0 deletions schema-mounts-ex1-lne.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"schema": [
{
"name": "ni-schema",
"module-set-id": "4c9805268bc1309be9189ed51d1cadb474068c8b",
"module": [
{
"name": "ietf-ipv4-unicast-routing",
Expand Down