0e4b6866b2c4cd81c9215d59077ff59961bdbda0
[yangtools.git] / yang / yang-parser-impl / src / test / resources / rfc7950 / bug6868 / yang11 / foo.yang
1 module foo {
2     namespace "foo";
3     prefix foo;
4     yang-version 1.1;
5
6     import imported { prefix imp; revision-date 2017-01-09; }
7
8     feature foo;
9     feature bar;
10     feature baz;
11
12     container my-container-1 {
13         if-feature "(not foo) or (bar and baz)";
14     }
15
16     container my-container-2 {
17         if-feature "not foo or bar and baz";
18     }
19
20     container my-container-3 {
21         if-feature "((not foo or bar) and baz)";
22     }
23
24     container foo {
25         if-feature "foo";
26     }
27
28     container not-foo {
29         if-feature "not foo";
30     }
31
32     container imp-bar {
33         if-feature "imp:bar";
34     }
35
36     container imp-bar-2 {
37         if-feature "imp:bar and not bar";
38     }
39 }