File: valid.yang

package info (click to toggle)
sysrepo 3.7.11-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,720 kB
  • sloc: ansic: 85,593; sh: 145; makefile: 29
file content (23 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module valid {
    namespace "urn:valid";
    prefix v;

    container cont {
        leaf l1 {
            type string {
                length "1..10";
            }
        }
        leaf l2 {
            type uint8;
        }
        leaf l3 {
            type string;
            must ". = 'value'";
        }
        leaf-list l4 {
            type string;
            max-elements 1;
        }
    }
}