File: when2.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 (30 lines) | stat: -rw-r--r-- 470 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
24
25
26
27
28
29
30
module when2 {
    namespace "urn:when2";
    prefix w2;

    import when1 {
        prefix w1;
    }

    container cont {
        when "/w1:l1";
        leaf l {
            type string;
        }
    }

    leaf ll {
        when "/w1:l2";
        type string;
        default "zzZZzz";
    }

    augment /w1:cont {
        when "starts-with(w1:l4,'sri')";
        container cont2 {
            leaf bl {
                type string;
            }
        }
    }
}