Bug 4662: Introduce a SemanticVersion concept - import processing
[yangtools.git] / yang / yang-parser-impl / src / test / resources / semantic-version / import / import-invalid-deprecated-2 / semantic-version.yang
1 module semantic-version {
2     namespace "urn:opendaylight:yang:extension:semantic-version";
3     prefix sv;
4     yang-version 1;
5
6     revision 2016-02-02 {
7         description "Initial verison";
8     }
9     sv:semantic-version "1.0.0";
10
11     extension semantic-version {
12         argument "semantic-version" {
13             yin-element false;
14         }
15         description
16             "The OpenConfig version number for the module. This is
17             expressed as a semantic version number of the form:
18               x.y.z
19             where:
20               * x corresponds to the major version,
21               * y corresponds to a minor version,
22               * z corresponds to a patch version.
23             This version corresponds to the model file within which it is
24             defined, and does not cover the whole set of OpenConfig models.
25             Where several modules are used to build up a single block of
26             functionality, the same module version is specified across each
27             file that makes up the module.
28
29             A major version number of 0 indicates that this model is still
30             in development (whether within OpenConfig or with industry
31             partners), and is potentially subject to change.
32
33             Following a release of major version 1, all modules will
34             increment major revision number where backwards incompatible
35             changes to the model are made.
36
37             The minor version is changed when features are added to the
38             model that do not impact current clients use of the model.
39
40             The patch-level version is incremented when non-feature changes
41             (such as bugfixes or clarifications to human-readable
42             descriptions that do not impact model functionality) are made
43             that maintain backwards compatibility.
44
45             The version number is stored in the module meta-data.";
46     }
47 }