94ce4878a30233e4a59d8dc4b4a574e7233a50af
[smo/teiv.git] /
1 module deviate-not-supported-test-module {
2
3     namespace "urn:ietf:params:xml:ns:yang:deviate-not-supported-test-module";
4     prefix dev;
5
6     import deviation-host-test-module {
7         prefix host;
8     }
9
10         description
11         "Copyright (C) 2024 Ericsson
12         Modifications Copyright (C) 2024 OpenInfra Foundation Europe";
13
14     revision "2019-10-09" {
15         description "initial revision";
16     }
17
18 // ---------------- These deviations are just fine ---------------------
19
20     deviation /host:cont2/host:leaf21 {
21         deviate not-supported;
22     }
23
24         deviation /host:list21 {
25         deviate not-supported;
26         }
27
28         deviation /host:cont1 {
29         deviate not-supported {
30             yexte:updated-description "blurb";          // should be ok, extensions are allowed under deviate not-supported
31         }
32         }
33
34 // ---------------- These deviations try to not-support things that don't exist in the host model ---------------------
35
36     deviation /host:unknownElement {
37         deviate not-supported;
38     }
39
40     deviation /host:cont3/host:unknownElement {
41         deviate not-supported;
42     }
43
44 // ---------------- Various other findings ---------------------
45
46     deviation /host:cont4 {
47         deviate not-supported {
48             type int16;                 // cannot have child statements
49         }
50     }
51
52 }