summaryrefslogtreecommitdiffstats
path: root/tests/yanglint/modules/modmerge.yang
blob: 60fd75c1964aeb7fda7517b4682c6e3448457922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module modmerge {
  namespace "urn:yanglint:modmerge";
  prefix mm;

  container mmc {
    leaf en {
      type enumeration {
        enum zero;
        enum one;
      }
    }
    leaf lm {
      type int16;
      must "../en != 'zero'";
    }
    leaf lf {
      type string;
    }
  }

}