summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/ordered/by/user/ordered-by-user-example.yang
blob: 268433624a09796cc7610ea4035ee119cabd2b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module ordered-example {
  namespace "ordered:example";
  prefix "oex";

  revision 2016-11-13 {
    description
      "Initial revision.";
  }

    container cont {
        list playlist {
            key name;

            leaf name {
              type string;
            }
            list song {
              key index;
              ordered-by user;

              leaf index {
                type uint32;
              }
              leaf id {
                type instance-identifier;
                mandatory true;
                description
                  "Song identifier. Must identify an instance of
                   /songs-cont/songs/song-name.";
              }
            }
          }
    }

    container songs-cont{
        list songs{
            key song-name;

            leaf song-name{
                type string;
            }
        }
    }
}