summaryrefslogtreecommitdiffstats
path: root/restconf-client/provider/src/test/resources/yang/test-augment.yang
blob: 795000d3952592474236fb212e89ad240751bb65 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
module test-augment {
    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:augment";
    prefix "hello";

    import test-yang {
       prefix t;
    }

    revision "2015-01-05" {
        description "Initial revision of hello model";
    }

    augment "/t:cont1/t:cont2/t:cont4" {
        container cont5 {
            leaf leaf13 {
               type empty;
            }
        }
        list list7 {
            leaf leaf14 {
                type instance-identifier;
            }
        }
        leaf leaf15 {
            type string;
        }
        leaf-list ll6 {
            type union {
                type int32;
                type enumeration {
                    enum "unbounded";
                }
            }
        }
        uses "t:g1";
    }

    uses "t:g1";
    augment "/t:ch1/t:c1/t:cont8/t:cont6" {
        choice ch2 {
            case c3 {
                leaf leaf21 {
                    type string;
                }
            }
            case c4 {
                leaf leaf22 {
                    type enumeration {
                        enum zero;
                        enum one;
                        enum seven {
                            value 7;
                        }
                    }
                }
            }
        }
    }

    augment "/t:ch1" {
       case c5 {
          container cont10 {
              leaf leaf23 {
                  type string;
              }
          }
       }
    }

    augment "/t:ch1/t:c1" {
        container cont7 {
            leaf leaf24 {
                type string;
            }
        }
    }

    augment "/t:cont13/t:cont12" {
       leaf leaf29 {
           type string;
       }
    }

    augment "/t:create-sfc/t:input" {
        leaf leaf36 {
            type bits {
                bit angle {
                    position 0;
                }
                bit degree {
                    position 1;
                }
                bit movement {
                    position 2;
                }
            }
        }
    }

    augment "/t:create-sfc/t:output" {
       leaf leaf37 {
           type boolean;
       }
    }
}