module example-versioned-module { yang-version 1.1; namespace "urn:example:versioned:module"; prefix "exvermod"; import ietf-yang-revisions { prefix "rev"; } import ietf-yang-semver { prefix "ysv"; } description "to be completed"; revision 2017-08-30 { description "Backport 'wibble' leaf"; ysv:version 1.2.2_non_compatible; } revision 2017-07-30 { description "Rename 'baz' to 'bar'"; ysv:version 1.2.1_non_compatible; rev:non-backwards-compatible; } revision 2017-04-20 { description "Add new functionality, leaf 'baz'"; ysv:version 1.2.0; } revision 2017-04-03 { description "Add new functionality, leaf 'foo'"; ysv:version 1.1.0; } revision 2017-02-07 { description "First release version."; ysv:version 1.0.0; } // Note: YANG Semver rules do not apply to 0.X.Y labels. // The following pre-release revision statements would not // appear in any final published version of a module. They // are removed when the final version is published. // During the pre-release phase of development, only a // single one of these revision statements would appear // revision 2017-01-30 { // description "NBC changes to initial revision"; // ysv:version 0.2.0; // rev:non-backwards-compatible; // optional // // (theoretically no // // 'previous released version') // } // revision 2017-01-26 { // description "Initial module version"; // ysv:version 0.1.0; // } //YANG module definition starts here container example { description "This is an example container for the example-versioned-module."; leaf qux { type string; description "The qux instance of the device."; } leaf foo { type string; description "The foo instance of the device."; } leaf bar { type uint32; description "The magnitude of the foo. This leaf was renamed from 'baz'."; } leaf wibble { type boolean; description "Does it wibble (true) or wobble (false)?"; } } }